Staggered GridView Layout Issues

teh_raab

New member
Feb 1, 2017
4
0
0
Visit site
Hi All,

My first post so hi everyone.

I haven't done any Java in about 12 years (way to make someone feel old) but have been tasked to create a staggered grid for an Android application.

The application is fixed in landscape orientation and the grid needs to be able to flick horizontally only. The grid delegates need to be displayed in a top down left to right fashion like so..

There are three types of delegates. (1), (2) and (6) The grid can only be as high as type (1)
required layout.jpg

However the recycler view and grid are overriding the delegate width and height and appearing like...

my layout.jpg

Is there a way to enforce the object dimensions so that the recycler does not alter them?

I have been using an AndroidStaggeredGridLayoutManager example to try and get this working so not even sure if this is the correct way to go about doing this?

Thanks in advance.
 

Forum statistics

Threads
943,933
Messages
6,920,693
Members
3,159,314
Latest member
rambo4id