开通VIP,畅享免费电子书等14项超值服
首页
好书
留言交流
下载APP
联系客服
2016.06.10
一、使用html
方法1、使用 CDATA(推荐)
ABC ]]> 方法2、转义HTML标签bold, underline 二、使用方法加载数据使用:String demo1 = Html.fromHtml(getResources().getString(R.string.demo1));当string文件中有参数时:%1$d 年,今年%2$s]]> 使用Html.fromHtml(getResources().getString(R.string.demo3, new String['2013', '好好干事']));
方法2、转义HTML标签
bold, underline
二、使用方法
加载数据使用:
String demo1 = Html.fromHtml(getResources().getString(R.string.demo1));
当string文件中有参数时:
%1$d 年,今年%2$s]]> 使用Html.fromHtml(getResources().getString(R.string.demo3, new String['2013', '好好干事']));
使用Html.fromHtml(getResources().getString(R.string.demo3, new String['2013', '好好干事']));
微信登录中...请勿关闭此页面