TextView的字体颜色样式用代码设置selector

2018-07-26  本文已影响0人  janyet

在res/color 文件夹中建立textview_selector

tv.setTextColor(getResources().getColorStateList   (R.color. textview_selector));

上一篇 下一篇

猜你喜欢

热点阅读