I want to change the text color of search view hint, but I tried in many ways with no success. Like in this post: Changing action bar searchview hint text color
I'm using Appcompat, support library of actionbar.
I tried this with null pointer return:
AutoCompleteTextView searchText = (AutoCompleteTextView) searchView.findViewById(R.id.abs__search_src_text);
searchView.findViewById(R.id.abs__search_src_text);
searchText.setHintTextColor(getResources().getColor(R.color.white));
searchText.setTextColor(getResources().getColor(R.color.white));