最佳答案
我试图使用TextView
构造函数,样式如下:
TextView myText = new TextView(MyActivity.this, null, R.style.my_style);
但是,当我这样做时,文本视图似乎没有采用该样式(我通过在静态对象上设置该样式来验证该样式)。
我也尝试过使用myText.setTextAppearance(MyActivity.this, R.style.my_style)
,但它也不工作。