Search View Icon Change

I implemented SearchView in the toolbar as shown in the image below. Here the search icon is on the right side of the cursor. And he becomes invisible with a hint. My search view

I want to move the search icon on the left side of the cursor, and also should not be invisible with a hint. he should be in that order. [SearchIcon-Cursor-Hint]

I want it to look like this image.

This is want i want

Can anyone help me ... :(

+4
source share
2 answers

if you use the edittext control, you can do it in edittext as follows:

Android: drawableLeft = "@/"

+1

, API 17

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

All Articles