代碼中的Android設(shè)置樣式我試圖使用具有如下樣式的TextView構(gòu)造函數(shù):TextView myText = new TextView(MyActivity.this, null, R.style.my_style );但是,當我這樣做時,Text視圖似乎沒有接受樣式(我通過在靜態(tài)對象上設(shè)置樣式來驗證樣式)。我也試過用myText.setTextAppearance(MyActivity.this, R.style.my_style)但它也不起作用
3 回答

紅顏莎娜
TA貢獻1842條經(jīng)驗 獲得超13個贊
textView.setTextAppearance(this, R.style.MyTextStyle);
- 3 回答
- 0 關(guān)注
- 997 瀏覽
添加回答
舉報
0/150
提交
取消