Skip to content Skip to sidebar Skip to footer

Search View Icon Position Change

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. I want to shif

Solution 1:

if you are using an edittext control, you can do it in the edittext as follows...

android:drawableLeft="@drawable/search"

Solution 2:

This one could help but required API 17

<SearchViewandroid:layout_width="match_parent"android:layout_height="wrap_content"android:layoutDirection="rtl" />

Post a Comment for "Search View Icon Position Change"