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);
声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!