0

Currently, I have in my project a SearchView that looks like this: how I don't want the search

Eye-burning, ain't it? So I need it to look like this:

how I want the search

Can this be done?

I don't even know what that line's called, so I'm not really sure how I'd go looking for it, which admittedly might be part of why I can't seem to find the answer, but I have tried messing with EditText properties and it didn't seem to work.

Not using appcompat, application is Android 4.0+ only.

So far I've tried to look for set options on the searchView documentation (no luck) and setting the following under ActionBar in styles.xml:

    <item name="android:editTextBackground">@color/white_color_is_white</item>
Cœur
  • 37,241
  • 25
  • 195
  • 267
Larpus
  • 301
  • 1
  • 3
  • 17
  • question: what have you tried so far ... are you using appcompatv7? – Selvin Nov 06 '14 at 13:58
  • Updated the question with the information. – Larpus Nov 06 '14 at 16:48
  • seems like new material api will fix it (tint(new attr for views)? corect words? my native is not english) http://android-developers.blogspot.com/2014/10/appcompat-v21-material-design-for-pre.html one of the headers is about "Widget tinting" – Selvin Nov 06 '14 at 16:52
  • another solution is: take a look at android source, take drawable for editbox/searchview editbox_or_searchview_state_background.xml(not sure about name but somthing similar), take the 9-patch pngs from this xml and copy to your project then modify ... and then set android:background of EditBox/SearchView to this drawable(xml) – Selvin Nov 06 '14 at 16:58
  • simple googling returns that what i was trying to say in prev comment someone already did http://stackoverflow.com/questions/11085308/changing-the-background-drawable-of-the-searchview-widget – Selvin Nov 06 '14 at 17:05

0 Answers0