在Java代码中设置android TextView的文本外观

时间:2014-01-26 03:09:56

标签: android

如何在Java代码中将android TextView的文本外观设置为大?有一种方法setTextAppearance(),但我不知道如何使用它。

2 个答案:

答案 0 :(得分:5)

试试这个:

textView.setTextAppearance(this, android.R.style.TextAppearance_Large);

答案 1 :(得分:0)

试试这个:

[INFO:CONSOLE(521)] "http://localhost/oauth/v2/token?client_id=18_5cf03buhhp8gafadfg088w440ogsgd08ooggso80wg000k0gccw08&client_secret=4ajo9kcdqbqagddagdfdfswwcoo0c4gk48g4okw4kck0k0&grant_type=password&username=testing&password=/#+6-[[?!nWYvfL)2Z7", source: file:///android_asset/www/js/factoryutils.js (521)