搜索视图图标位置更改 [英] Search View Icon Position Change
问题描述
我已经在工具栏中实现了SearchView,如下图所示. 此处,搜索图标位于光标的右侧.并带有提示不可见.
I have implemented a SearchView in a toolbar as shown in image below. Here, the search icon is on the right side of a cursor . And it gets invisible with the hint.
我想移动光标左侧的搜索图标,并且它也不应在提示中不可见. 它应该按此顺序.[SearchIcon-Cursor-Hint]
I want to shift the search icon on the left side of a cursor and also it should not get invisible with the hint. it should be in this order.. [ SearchIcon-Cursor-Hint ]
我想要它像这张照片.
有人可以帮我吗...:(
Can anyone please help me out... :(
推荐答案
如果您使用的是edittext控件,则可以在edittext中进行如下操作...
if you are using an edittext control, you can do it in the edittext as follows...
android:drawableLeft ="@ drawable/search"
android:drawableLeft="@drawable/search"
这篇关于搜索视图图标位置更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!