Android: How to place an animated image inside an EditText that we can show and hide

后端 未结 4 1688
时光说笑
时光说笑 2021-01-06 07:25

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

4条回答
  •  梦谈多话
    2021-01-06 08:16

    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

提交回复
热议问题