在代码中引用资源

getResources().getColor(R.color.colorAccent)

 

posted @ 2016-06-01 10:09  zqxLonely  阅读(168)  评论(0)    收藏  举报