您的位置:首页 > Web前端 > HTML

TextView 显示html

2015-12-22 11:04 489 查看
TextView tv_title =(TextView) findViewById(R.id.tv_title);

String html ="<big><font color='red'>XCL-Charts</font></big><br/>" +"    版本: 2.4<br/>"
+"    最后更新: 2015-09-26<br/>"+ "    <br/>"
+"<big><font color='red'>License</font></big><br/>" +"    Apache v2 License开源协议。"

CharSequencecharSequence = Html.fromHtml(html);
tv_title.setText(charSequence);
tv_title.setMovementMethod(LinkMovementMethod.getInstance());
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  android textview html