gpt4 book ai didi

Android:编辑文本中的 "working"图片

转载 作者:行者123 更新时间:2023-11-29 18:04:39 25 4
gpt4 key购买 nike

我想在 edittext 中有一个图像,这将在用户键入时用动画改变它的可绘制性,如下所示:

enter image description here

enter image description here

谢谢:)

最佳答案

你只需要设置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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com