代码中的Android设置样式我试图使用具有如下样式的TextView构造函数:TextView myText = new TextView(MyActivity.this, null, R.style.my_style );但是,当我这样做时,Text视图似乎没有接受样式(我通过在静态对象上设置样式来验证样式)。我也试过用myText.setTextAppearance(MyActivity.this, R.style.my_style)但它也不起作用
3 回答
![?](http://img1.sycdn.imooc.com/54584dd900014f6c02200220-100-100.jpg)
红颜莎娜
TA贡献1842条经验 获得超12个赞
textView.setTextAppearance(this, R.style.MyTextStyle);
- 3 回答
- 0 关注
- 980 浏览
添加回答
举报
0/150
提交
取消