无法在 android 中添加 json 数据文本和图标列表项

Unable to add json data text and Icons list item in android

目前,我有一个完整的工作应用程序,它使用默认的 ListAdapter 在列表视图中显示 json 数据,但是,我想添加一个图像视图并设置来自 json 数据的字符串数据通过网络。

我从网上获得的数据就像{name=John, title=我的书,date_=2014/03/14}。 如何设置或制作自定义适配器以显示 arrList = new ArrayList<HashMap<String, String>>(); 中的 json 并显示前 3 个项目的图像?因为,我对此很陌生,所以我需要一些帮助。

if(!arrList.isEmpty()){

                    ListAdapter adapter = new SimpleAdapter(JKujiListActivity.this, arrList,
                            R.layout.customlist, new String[] {"name", "title", "date"},
                            new int[] {R.id.name,R.id.dai, R.id.day});

                    mySpinner.setAdapter(adapter);

                }

标准适配器无法做到这一点。您应该创建自己的适配器 class,因为它解释了 here