摘要:
Android TextView 部分字符高亮方法一 :String str="imp"; textView.setText(Html.fromHtml("<font color=\"#ff0000\">"+str));方法二:SpannableStringBuilder styled = new SpannableStringBuilder(textView.getText());// i 未起始字符索引,j 为结束字符索引styled.setSpan(new ForegroundColorSpan(Color.RED) 阅读全文
posted @ 2012-11-29 20:51
流云飞飞
阅读(4684)
评论(0)
推荐(0)