他的回复:
将最后部分代码改为 Map maps1 = new HashMap(); maps1.put("image",R.drawable.a1); Map maps2 = new HashMap(); maps2.put("image",R.drawable.a2); Map maps3 = new HashMap(); maps3.put("image",R.drawable.a3); list.add(maps1); list.add(maps2); list.add(maps3); s = new SimpleAdapter(MainActivity.this, list, R.layout.imageview, new String[]{"image"}, new int[]{R.id.image});