How to create a collection from res/values/arrays.xml?
How to create a collection from res/values/
arrays.xml:
<resources>
<string-array name="select_dialog_items">
<item&g开发者_StackOverflow中文版t;Start</item>
<item>Stop</item>
<item>Delete</item>
</string-array>
</resources>
Assuming that this
is your Activity...
String[] data = this.getResources().getStringArray(R.array.select_dialog_items);
精彩评论