如何在自定义recylerview上添加搜索视图

时间:2017-06-05 07:21:46

标签: android android-recyclerview searchview

如何从排序中设置多个数据并将其存储在Recyclerview上,以便在字符串[]中从服务器获取数据。

for(int i=0;i<users.length();i++){
            JSONObject jo = users.getJSONObject(i);
            productCodes[i] = jo.getString(KEY_PC);
            skuDescriptions[i] = jo.getString(KEY_SD);
            productDescriptions[i] = jo.getString(KEY_PD);
            thumbnails[i] = jo.getString(KEY_TN);
            innnerqtys[i] = jo.getString(KEY_IQ);
            outerqtys[i] = jo.getString(KEY_OQ);
            stockqtys[i]= jo.getString(KEY_SQ);
            isstockqtys[i]= (jo.getString(KEY_IS));
            thumbnails_main[i] = jo.getString(KEY_TN_MAIN);
            thumbnails_small[i]= jo.getString(KEY_TN_SMALL);
            thumbnails_ori[i]= (jo.getString(KEY_TN_THUMB));
            HashMap<String, AndroidVersion> mapper = new HashMap();
            mapper.put("NS01", new AndroidVersion(productCodes[i]));

        }

0 个答案:

没有答案