java - Remove icon from searchView widget (not in actionBar) -


i want customize searchview widget in app. point remove magnifier glass icon (not make transparent, remove). make easier understand here screenshots:

how looks now:

1

and how supposed look:

enter image description here

i can use edittext instead, doesn't have suggestions, important me.

it appears searchview extending linearlayout. guess orientation horizontal.

you instance of searchview , remove first child. have not tried think work.

searchview searchview = (searchview)findviewbyid(r.id.search); // have play around think 0 right value linearlayout linearlayout = (linearlayout) searchview.getchildat(0); linearlayout.removeviewat(1); 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -