Gna*_*m R 1 string android textview
String ="这是样品"
我想在String中单独增加SAMPLE的大小以突出显示,但需要在单个字符串中,这是在TextView中设置的.
提前致谢.
textView.setText(Html.fromHtml("This is <font color='#707070' size='20'>
SAMPLE</font>"));
Run Code Online (Sandbox Code Playgroud)