小编Vis*_*han的帖子

如何在回收站视图中显示ArrayList <Hashmap <String,String >>

我正在实现一个显示相似结果的搜索结果页面。我有一个Hash-Maps的数组列表(具有50个地图,其中每个地图都有12个值)。我想在结果页面的卡片视图中显示每个地图。我尝试为此使用回收站视图。但无法解决这个问题。我已经遍历了堆栈溢出中的所有线程,但找不到任何东西。

ArrayList<HashMap<String, String>> mylist = new ArrayList<HashMap<String,String>>();

nodes = docc.getElementsByTagName("Table");
            int k = nodes.getLength();

            for (int i = 0; i < k; i++) {
                Element e = (Element) nodes.item(i);
                HashMap<String, String> map = new HashMap<String, String>();
                patid = getValue(e, "iPat_id");
                patname = getValue(e, "cPat_Name");
                patAge = getValue(e, "iAge");
                cMaritalSt = getValue(e, "cMarital_St");
                OpRegNo = getValue(e, "iReg_No");
                Doc_Id = getValue(e, "iDoc_id");
                Dept_Id = getValue(e, "iDept_id");
                DocName = getValue(e, "cDocName");
                PatAddress = getValue(e, "PatAddress");
                mobileno = getValue(e, "cMobile");
                patdob = …
Run Code Online (Sandbox Code Playgroud)

android arraylist hashmap recycler-adapter android-recyclerview

0
推荐指数
1
解决办法
1820
查看次数