我想在 edittext 中有一个图像,这将在用户键入时用动画改变它的可绘制性,如下所示:
谢谢:)
最佳答案
你只需要设置CompoundDrawables {Right |左|顶部 | xml中的bottom}属性
<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/searchedTxt"
android:width="200dp"
android:layout_alignParentRight="true"
android:drawableLeftt="@android:drawable/ic_menu_search"/>
关于Android:编辑文本中的 "working"图片,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14042895/