由网友(八嘎八嘎/*)分享简介:我想添加一个搜索图标,在左边出现一个的EditText 里面?比如在Facebook的Android应用搜索框?I want to add a "search" icon to appear inside an EditText in the left edge? such as search box in Fa...
我想添加一个搜索图标,在左边出现一个的EditText
里面?比如在Facebook的Android应用搜索框?
I want to add a "search" icon to appear inside an EditText
in the left edge? such as search box in Facebook Android app?
推荐答案
使用的android:drawableLeft财产上的EditText。
Use the android:drawableLeft
property on the EditText.
<EditText
...
android:drawableLeft="@drawable/my_icon" />
相关推荐
最新文章