homeText.setTextColor(R.color.bg); 这种在代码里设置颜色是无效果的
要使用
homeText.setTextColor(getResources().getColor(R.color.bg));
homeText.setTextColor(R.color.bg); 这种在代码里设置颜色是无效果的
要使用
homeText.setTextColor(getResources().getColor(R.color.bg));
本文标题:动态设置字体颜色无效的解决办法
本文链接:https://www.haomeiwen.com/subject/dlavyxtx.html
网友评论