获取textview当前颜色
textview.getCurrentTextColor();
获取colors.xml中的颜色
int textColor = getResources().getColor(R.color.mycolor);
getcolor已过时!应该使用如下方法替代:
ContextCompat.getColor(context, R.color.my_color);
获取textview当前颜色
textview.getCurrentTextColor();
获取colors.xml中的颜色
int textColor = getResources().getColor(R.color.mycolor);
getcolor已过时!应该使用如下方法替代:
ContextCompat.getColor(context, R.color.my_color);