etsy / AndroidStaggeredGrid

An Android staggered grid view which supports multiple columns with rows of varying sizes.
https://github.com/etsy/AndroidStaggeredGrid
4.76k stars 1.13k forks source link

getView() getting called only 3 times when getCount() returns 9 on 7 inch Tablet Portrait mode #116

Open miteshpithadiya opened 10 years ago

miteshpithadiya commented 10 years ago

Hi,

I am trying to implement StaggeredGridView in 7 inch Samsung Tablet, but it is only displaying 3 items out of 9 when column count is set to 2. It displays 4 items out of 9 when column count is set to 3.

The same thing works fine in phones but in 7 inch tablet it replicates the above behaviour.

Could you please help me with the same and tell me the workaround.

Thanks & Regards, Mitesh Pithadiya

blundell commented 10 years ago

Please provide an example to reproduce the issue

miteshpithadiya commented 9 years ago

Hey, Thanks for the reply, please find below the issue in detail.

I have a dashboard which is having around 8 items in it, so I am showing 2 columns and 4 rows using Staggered Grid View. Now whenever I am loading this Staggered View in Mobile phones such as Samsung Galaxy Note 2, Nexus 4,5, Samsung Galaxy S4, etc. it works perfectly fine. But when I try to load it in phones having bigger screens (for eg. Samsung Galaxy Note 1, Samsung Galaxy Tab 3 7.0, etc.) it displays only 3 items from 8 even if there is no change in the code. I have implemented the Staggered Grid View in conventional way.

Please let me know if you have questions.