4

I want to customize the default Android SearchView to make it look like this: enter image description here

I could use reflection for accessing to propeties of SearchView and use ImageSpan to add the magnifier icon before "Search" (the hint text) then set it as hint text for SearchView's EditText.

But I also need the magnifier to be align in the SearchView with exact pixel values as illustrated in the image above. I haven't figure out any way to achieve this yet.

How can I implement it?

theman
  • 598
  • 1
  • 7
  • 19

0 Answers0