I'm adding a android.widget.SearchView
to a view in the code, but I Do not know how to set the color of the text for it.
SearchView = new search view (getContext ());
I think there are ways to set text alignment and direction.
I also see that I can set the background color and tint but nothing for the foreground.
try it
int id = searchView.getContext () . GetResources () GetIdentifier ("android: id / search_src_text", null, null); TextView textView = (TextView) searchView.findViewById (ID); TextView.setTextColor (Color.WHITE);
Comments
Post a Comment