在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("红色<br>作为个体:高度乐观的积极心态。喜欢自己,也容易接纳别人。<br>喜欢自己,也容易接纳别人。把生命当作值得享受的经验。):}TextView中设置文本格式的方法
最新推荐文章于 2023-03-09 17:51:37 发布