<array name="title"><item>51巅峰钜惠</item><item>十大星级品牌联盟,全场2折起</item><item>生命不是要超越别人,而是要超越自己。</item><item>己所不欲,勿施于人。——孔子</item><item>嗨购5折不要停</item>
</array>
public static List<String> titles=new ArrayList<>();
String[] tips = getResources().getStringArray(R.array.title);
List list1 = Arrays.asList(tips);
titles= new ArrayList(list1);
22222222222222222222222222222222222222222
private ArrayList<String> urlArrays = new ArrayList<>();
String[] imagesUrl = {"https://img-my.csdn.net/uploads/201407/26/1406383299_1976.jpg","https://img-my.csdn.net/uploads/201407/26/1406383291_6518.jpg","https://timgsa.baidu" + "" + "" + "" + ""+ ".com/timg?image&quality=80&size=b9999_10000&sec=1492603173910&di" +"=56a7ddd19599e6c69407b5fc00713d68&imgtype=0&src=http%3A%2F%2Fimg2.ph.126.net" +"%2Ff9lpAnpwJvmY9j_JwOt30w%3D%3D%2F1753307630030769317.jpg","http://wx1.sinaimg" + "" + "" + "" + "" + "" +".cn/mw600/006wXKLaly1fes36o79f2j30m80etgmq.jpg", "http://wx1.sinaimg" +"" + "" + "" + ".cn/thumb180/005Sbq5bly1fertaiisehg30cc06yu0z.gif","http://file.ataw.cn/HospPerformance/Model/Image/2017/06/20/File/20170620173507137A9A7CC4BD991149058A765A34095728CF.jpg?ut=20170620173516", }; List<String> list = Arrays.asList(imagesUrl); urlArrays.addAll(list);