我已将Listview填充如下:
Hashmap item = new HashMap<String,String>();
ArrayList list=new ArrayList<HashMap<String,String>>();
SimpleAdapter adapter=new SimpleAdapter(this, list,
R.layout.simplelist,
new String[] { "line1","line2" },
new int[] {R.id.text1, R.id.text2});
ListView.setAdapter(adapter);
item.putLine("line1",item1);
item.putLine("line2",item2);
list.add(item);
如何搜索添加到2D ArrayList中的项目? 以及找到位置后如何更新项目? (例如:我要更新item2)