我正在尝试使用像这样的样式的TextView构造函数:
TextView myText = new TextView(MyActivity.this, null, R.style.my_style );
但是,当我这样做时,文本视图似乎不采用样式(我通过在静态对象上设置它来验证样式).
我也尝试过使用myText.setTextAppearance(MyActivity.this, R.style.my_style)但它也不起作用
myText.setTextAppearance(MyActivity.this, R.style.my_style)
android coding-style textview
android ×1
coding-style ×1
textview ×1