IBRAR AHMAD IBRAR AHMAD - 1 year ago 113
Android Question

Android - Difference between Gridlayout and Staggered Gridlayout

I am working in android material design api & want to display some data in grid format. I tried both

and both look same. For general information, i want to ask what is the difference between

Thank you.

Answer Source

Grid View : It is is a ViewGroup that displays items in a two-dimensional, scrollable grid. In this each Grid is of same size (Height and width). Grid View shows symmetric items in view.

Grid View

Staggered Grid View : It is basically an extension to Grid View but in this each Grid is of varying size(Height and width). Staggered Grid View shows asymmetric items in view.

staggered grid view

Tutorial to implement Staggered Grid View :

  1. Staggered Grid View
  2. Pinterest Masonry layout Staggered Grid View
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download