机器人:在运行时设定的TextView风格 [英] android : set textView style at runtime
本文介绍了机器人:在运行时设定的TextView风格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是任何机构知道如何设置的风格脱颖而出的TextView在运行时:
像这样
myTextView.setStyle(R.style.mystyle);
解决方案
很容易只使用setTextApparence和你的风格
myTextView.setTextAppearance(getApplicationContext(),R.style.boldText);
is any body know how to set style fore textView at run time:
something like this
myTextView.setStyle(R.style.mystyle);
解决方案
Very easy just use setTextApparence and your style
myTextView.setTextAppearance(getApplicationContext(), R.style.boldText);
这篇关于机器人:在运行时设定的TextView风格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文