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>
   

posted @ 2015-02-03 15:59  realhopezj  阅读(502)  评论(1编辑  收藏  举报