机器人:在运行时设定的TextView风格机器人、风格、TextView

2023-09-12 09:36:29 作者:ヌ酷还可爱

是任何机构知道如何设置的风格脱颖而出的TextView在运行时:

像这样

  myTextView.setStyle(R.style.mystyle);
 

解决方案

很容易只使用setTextApparence和你的风格

  myTextView.setTextAppearance(getApplicationContext(),R.style.boldText);
 

千语云AI智能话务机器人,助力 电销 步入人工智能时代

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);