在代码中引用资源

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

 

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