修改spinner选中以后显示的字体颜色

原来spinner选中以后显示的view  还是textview  ,这样就是可以设置它的字体颜色了


sp.setOnItemSelectedListener(new OnItemSelectedListener() {
public void onItemSelected(AdapterView<?> arg0, View arg1,
int arg2, long arg3) {

TextView tv=(TextView)arg1;
tv.setTextColor(SearchLocaAct.this.getResources().getColor(R.color.blue));微笑
}
public void onNothingSelected(AdapterView<?> arg0) {

}
});

原文地址:https://www.cnblogs.com/keanuyaoo/p/3290151.html