I've HashMap
key and JSONArray
in Adapter
. How to set header as key and array objects as sub items in RecyclerView?
Follwing is the HashMap
format for first and second positions getting at adapter class. how to set it in Adapter
?
0 [{"Imgo":"003f2e1f.jpg"},{"Imgo":"063f2e1f.jpg"}]
1 [{"Imgo":"003f2e1f.jpg"}]
I'm able to set the header properly. Dont know how to insert the subitems in each header.