问题小结(4)-在res里定义数组的简单使用
[html]
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="launger">
<item>date1</item>
<item>date2</item>
<item>date3</item>
</string-array>
</resources>
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="launger">
<item>date1</item>
<item>date2</item>
<item>date3</item>
</string-array>
</resources>
在代码里使用:Resources res;
res=this.getResources();
String [] ab=res.getStringArray(R.array.launger);
补充:移动开发 , Android ,