dimanche 10 mai 2015

Changing the number of columns in recyclerView for each row

I need to make a recyclerView that have two different items and one is the header and the other is the sub item, but to the header I need to use all the width screen and to the sub item I need just 1/4 of the screen.

Basically what I want is that:


                        Header

SubItem - SubItem - SubItem - SubItem

SubItem - SubItem

                        Header

SubItem - SubItem

                        Header

SubItem - SubItem - SubItem - SubItem


So how I can change the numbers of column according the item in the recyclerView adapter ?

Aucun commentaire:

Enregistrer un commentaire