android,在java代码中,如何给textview设置不同的颜色,以及引用color中资源设置颜色

textV.setTextColor(Color.parseColor("#FF0000"));
<pre name="code" class="java">tv_price.setTextColor(getResources().getColor(R.color.img_all_text_color));





程序员小冰博客:http://blog.csdn.net/qq_21376985 技术交流QQ986945193 微博:http://weibo.com/mcxiaobing
原文地址:https://www.cnblogs.com/mcxiaobing/p/5472068.html