1.SimpleAdapter simpleAdapter=new SimpleAdapter(this,content,R.layout.list_layout,new String[]{"icon","title","str"},new int[]{R.id.image,R.id.title,R.id.str});
这里面的new String[]{“icon”,”title”,”str”}里面的字符串要去前面定义的一致!
1.SimpleAdapter simpleAdapter=new SimpleAdapter(this,content,R.layout.list_layout,new String[]{"icon","title","str"},new int[]{R.id.image,R.id.title,R.id.str});
这里面的new String[]{“icon”,”title”,”str”}里面的字符串要去前面定义的一致!