getResources提取资源文件

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