i have following JSON format
{
"listing": {
"attribute": [{
"name": "brand",
"data": [{
"value": "brand with subtitle"
}, {
"value": "Brand2"
}, {
"value": "Samsung"
}]
}, {
"name": "price",
"data": [{
"value": 12
}, {
"value": 1499
}]
}, {
"name": "color",
"data": [{
"value": "Red"
}, {
"value": "Green"
}]
}, {
"name": "size",
"data": [{
"value": "XXXL"
}, {
"value": "L"
}]
}]
}
}
In above format there are two array attibute and data. So i for attribute array includes multiple name which i want to display in listview so i done this task successfully see below image
but inside that there are data array list for particular name and that arraylist value also i want to display in right side listview means if i click on brand at that time brand's value will be shown in right side listview . i done following code for left side listitem
if (mGetProductListing.getListing().getAttribute().size() > 0) {
mainMenuDataArrayList = getData();
if (mainMenuDataArrayList.size() > 0) {
mFilterCateAdapter = new FilterCateAdapter(ActivityFilter.this, mainMenuDataArrayList);
mListViewLeft.setAdapter(mFilterCateAdapter);
mFilterCateAdapter.setSelectedIndex(0);
}
}
But how can i list out right side list item dynamically as per choose category ? your all suggestions are appreciable