samedi 9 mai 2015

RecyclerView with different items

I am doing a recycler view that will have two different items, but I don't know how I can do that.

First: I have a ArrayList of an object and I don't know how put the times related with the date in the recycler view.

  • Date - Group item.

  • Times - Child item.

     Object {
     Date date;
     ArrayList times;
     }
    
    

Second: how I can change the spanSize according the item in adapter, when the position of the item isn't expected? (gridLayoutManager)

Aucun commentaire:

Enregistrer un commentaire