在string.xml文件里面用%*的使用

1:在string.xml文件里面用%*     <string name=”vrius_notion_content”>%s是危险软件,请马上删除</string> <string name=”app_content”>您安装的软件%s是危险软件是否卸载</string>
2:在别的地方使用的时候可以用getstring  方法将%*替换成自己需要填入的内容          vrius_notion_content = getString(R.string.vrius_notion_content, appname_notion);
          appcontent = getApplicationContext().getString(R.string.app_content, appname);

来源:Aandroid臭屁孩

声明:本站部分文章及图片转载于互联网,内容版权归原作者所有,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2015年1月18日
下一篇 2015年1月18日

相关推荐