SimpleExpandableListAdapter 问题
小哥、 2013-09-27 01:22:52 为什么SimpleExpandableListAdapter 报错 参数好像应该是这样的啊
SimpleExpandableListAdapter expand = new SimpleExpandableListAdapter(
this, group, R.layout.images,new String[] { "images", "names" }, new int[] { R.id.image1,R.id.txt1 },child,R.layout.txtitem,new String[] { "tengxun", "baidu", "alibaba" }, new int[] {R.id.txt1, R.id.txt1, R.id.txt1 });
下面就不报错 但是运行起来程序就挂了
SimpleExpandableListAdapter expand = new SimpleExpandableListAdapter(
this, group, R.layout.images,new String[] { "images", "names" }, new int[] { R.id.image1,R.id.txt1 },(List<? extends List<? extends Map<String, ?>>>) child,
R.layout.txtitem,new String[] { "tengxun", "baidu", "alibaba" }, new int[] {R.id.txt1, R.id.txt1, R.id.txt1 });
官方文档 child 的参数是List<? extends Map<String, ?>> 是这个啊