I am trying to add an animated spinner inside a EditText view to the right. And programmatically show/hide it.
I have created the animated spinner b
With the work that you've already done, I think the easiest answer would be to change your LinearLayout to a RelativeLayout, so that you can set alignParentRight on the ImageView and add paddingRight as needed.
Another option is to create a custom view component: http://developer.android.com/guide/topics/ui/custom-components.html