ArrayList<String> parsedPODAY_ID=new ArrayList<>();
ArrayList<String> parsedPODAY_P_IMG=new ArrayList<>();
ArrayList<String> parsedPODAY_NAME=new ArrayList<>();
ArrayList<String> parsedPODAY_PRICE=new ArrayList<>();
ArrayList<String> parsedPODAY_OFFPRICE=new ArrayList<>();
ArrayList<ArrayList<String>> fullPoday = new ArrayList<>();
ArrayList<ArrayList<String>> fullPoday = new ArrayList<>();
fullPoday.add(parsedPODAY_ID);
fullPoday.add(parsedPODAY_NAME);
fullPoday.add(parsedPODAY_P_IMG);
fullPoday.add(parsedPODAY_PRICE);
fullPoday.add(parsedPODAY_OFFPRICE);
我有一个arraylist数组作为fullPoday.But在另一个活动中如何获得数组列表的每个索引
答案 0 :(得分:0)
fullPoday.get(0).add("Test string 1");
String result = fullPoday.get(0).get(0);
Log.d("tag", result);
但是你尝试用字符串表进行操作。可能更好地使用数据库机制。