I want to change the color of the text in an ActionBarSherlock SearchView , so I found this in StackOverflow:
AutoCompleteTextView searchText = (AutoCompleteTextView) searchView.findViewById(R.id.abs__search_src_text); searchText.setHintTextColor(getResources().getColor(R.color.white)); searchText.setTextColor(getResources().getColor(R.color.white));
But the problem is that searchText always null. I also tried using search_src_text (no abs__ ) - again, searchText is null .
I use Sherlock for my ActionBar (with a custom view for the action bar), but I also want to change the color of the text in the search box.
Anything I wonโt get?
source share