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:
and how supposed look:
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
Post a Comment