searchview 修改text,hint字體大小顏色怎麼設置?
SearchView searchView = (SearchView)findViewById(R.id.search);
//設置輸入字體顏色
if(searchView == null) { return;}
int id = searchView.getContext().getResources().getIdentifier("android:id/search_src_text", null, null);
TextView textView = (TextView) searchView.findViewById(id);
textView.setTextColor(Color.RED);//字體顏色
textView.setTextSize(20);//字體、提示字體大小
textView.setHintTextColor(Color.BLUE);//提示字體顏色**