TextView中设置文本格式的方法

java代码中使用Html

TextView title = (TextView) this.findViewById(R.id.info_TextView_title); title.setText("性格详解"); ScrollView scrollview = (ScrollView) this .findViewById(R.id.info_scrollView1); TextView content = (TextView) this .findViewById(R.id.info_textView1_content); content.setText(Html .fromHtml("红色
作为个体:高度乐观的积极心态。喜欢自己,也容易接纳别人。
喜欢自己,也容易接纳别人。把生命当作值得享受的经验。):}



你可能感兴趣的:(TextView中设置文本格式的方法)