原来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));修改spinner选中以后显示的字体颜色
}
public void onNothingSelected(AdapterView<?> arg0) {

}
});

 

相关文章:

  • 2022-12-23
  • 2021-08-14
  • 2022-12-23
  • 2021-10-28
  • 2021-12-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-27
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案