String pxsize = context.getResources().getString(R.string.hello);
资源文件格式:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="hello">Hello World, WirelessActivity!</string>
</resources>
String pxsize = context.getResources().getString(R.string.hello);
资源文件格式:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="hello">Hello World, WirelessActivity!</string>
</resources>
转载于:https://www.cnblogs.com/realhope/p/4270224.html