相关疑难解决方法(0)

android在代码中设置样式

我正在尝试使用像这样的样式的TextView构造函数:

TextView myText = new TextView(MyActivity.this, null, R.style.my_style );

但是,当我这样做时,文本视图似乎不采用样式(我通过在静态对象上设置它来验证样式).

我也尝试过使用myText.setTextAppearance(MyActivity.this, R.style.my_style)但它也不起作用

android coding-style textview

243
推荐指数
6
解决办法
19万
查看次数

标签 统计

android ×1

coding-style ×1

textview ×1