Android implementation of an Evenly Spaced Grid ViewGroup
- import module,
- add it as library project for your app
- add xmlns:evenlySpacedGrid="http://schemas.android.com/apk/res-auto" to the root view in your layout
- copy the xml for EvenlySpacedGrid from example.xml into your layout
EvenlySpacedGrid assumes all child views are the same size, and have a set width and height.
It spaces out the elements so that they are evenly spaced into rows and columns, fitting as many as it can into a row before going to the next row.