In my app, I have a searchview that displays search suggestions. I want the dropdown/spinner and text to be a particular color. Currently the only change I've been able to make is the text color of the inputted text via the following:
<style name="MyApp.AutoCompleteTextView" parent="Widget.AppCompat.Light.AutoCompleteTextView">
<item name="android:textColor">@color/white</item>
<item name="android:textCursorDrawable">@null</item>
<item name="android:background">@color/myBackgroundColor</item>
</style>
The app currently displays the searchview results like this:
What I would like to know is how would I go about changing parts like the searchHint color, the drop down background and the drop down item text color?
I am targeting API 19+
SearchView.SearchAutoComplete autoComplete = (SearchView.SearchAutoComplete) searchView.findViewById(R.id.search_src_text); autoComplete.setDropDownBackgroundResource(R.drawable.drop_down_bg);
– Manlike