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) {
}
});
Android修改spinner显示的文字的字体颜色
最新推荐文章于 2024-08-12 03:44:03 发布