Search code examples
javaandroidandroid-recyclerviewandroid-gridview

How to create Asymmetric Grid layout like this?


How to create Asymmetric Grid layout like this using RecyclerView or GridView in Android Java only?

Note: The data comes in from an online database, so I want the column width to be adjusted according to the size of its content.

Thanks in Advance!!


Solution

  • You might be interested in using FlexboxLayout https://github.com/google/flexbox-layout.