我想添加一个搜索图标,在左边出现一个的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" />