我们如何从资源xml获取arraylist(字符串和整数) [英] how we can get the arraylist(both string and integer) from the resources xml

查看:105
本文介绍了我们如何从资源xml获取arraylist(字符串和整数)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,想从resources.xml获取数组列表.是否有任何代码.请给我一些建议.在此先感谢

Hi want to get the arraylist from the resources.xml is there any code for this.please give me some suggestions.Thanks in advance

推荐答案

使用此列表将是不可变的,因此,如果您想要一个可变的列表,请执行以下操作:

This list will be immutable, so if you want a mutable list, just do :

List<String> myResMutableList = new ArrayList<String>(myResArrayList);

这篇关于我们如何从资源xml获取arraylist(字符串和整数)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆