Thursday, July 4, 2013

Change the text color of searchView

SearchView searchView= (SearchView)findViewById(R.id.searchView1);
 int id = searchView.getContext().getResources().getIdentifier("android:id/search_src_text", null, null);
        TextView textView = (TextView) searchView.findViewById(id);
        textView.setTextColor(Color.WHITE);

4 comments: