TextView显示颜色高亮的问题
2017-05-16 14:39
218 查看
TextView textView = (TextView) findViewById( R.id.tv ); String text = "<font color=\"#d93b3a\">" + "快过年了" + "</font>" + "<font color=\"#666666\">" + "哈哈哈哈" + "</font>" + "<font color=\"#00caca\">" + "我是绿色的" + "</font>" ; textView.setText( Html.fromHtml(text) ) ;
显示的效果
![](http://images2015.cnblogs.com/blog/605655/201511/605655-20151119145845515-280398537.png)
相关文章推荐
- TextView显示颜色高亮的问题
- 最新历史版本 :android--设置TextView部分文字的颜色和背景(高亮显示)
- 最新历史版本 :android--设置TextView部分文字的颜色和背景(高亮显示)
- android--设置TextView部分文字的颜色和背景(高亮显示)
- 最新历史版本 :android--设置TextView部分文字的颜色和背景(高亮显示)
- android--设置TextView部分文字的颜色和背景(高亮显示)
- android--设置TextView部分文字的颜色和背景(高亮显示)
- android--设置TextView部分文字的颜色和背景(高亮显示)
- popupWindow+软键盘弹出,edittext设置,textview字体颜色设置,log打印过长显示不出来的问题
- android--设置TextView部分文字的颜色和背景(高亮显示)
- 关于textview中表示文字段落时,特定区域显示高亮颜色和点击事件的方法
- android--设置TextView部分文字的颜色和背景(高亮显示)
- android--设置TextView部分文字的颜色和背景(高亮显示)
- android--设置TextView部分文字的颜色和背景(高亮显示)
- Android问题集(二)——TextView在点击时显示不同颜色,Button点击效果
- android imageView 和TextVIew 颜色的透明度问题
- TextView中显示不同颜色的文字和图片
- TextView中部分字体高亮显示
- android中TextView分段显示不同颜色,字体,时间
- android 换行符(\n) 在TextView中显示不正常的问题