代码中的Android设置样式
我试图使用具有如下样式的TextView构造函数:
TextView myText = new TextView(MyActivity.this, null, R.style.my_style );
但是,当我这样做时,Text视图似乎没有接受样式(我通过在静态对象上设置样式来验证样式)。
我也试过用myText.setTextAppearance(MyActivity.this, R.style.my_style)但它也不起作用
myText.setTextAppearance(MyActivity.this, R.style.my_style)
红颜莎娜
相关分类