Android 获取资源下的颜色

1.设置TextView的文本颜色
tv.setTextColor(getResources().getColor(R.color.white));
posted @ 2015-11-20 10:13  醉孟子  阅读(117)  评论(0)    收藏  举报