setTextColor的几个注意事项

挖坑:

ColorStateList csl = (ColorStateList) getResources().getColorStateList(R.drawable.lixian_txt_selector);
if (csl != null) {
mTitlebar.mRight.setTextColor(csl);
}
// mTitlebar.mRight.setTextColor(getResources().getColor(R.drawable.lixian_txt_selector));

posted @ 2013-09-10 20:14  西瓜君  阅读(447)  评论(0编辑  收藏  举报