开发者

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);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜