Android: how to create a gridview

I have a requirement to create a gridview as shown below:

enter image description here

At first I thought about how to go with the StaggeredGridLayoutManager, but this one also has a static interval. If I go through only two columns, it will be created, even if space is available for another element.

Any suggestion please.

+4
source share
2 answers

This flow layout can help you.

Flowlayout

+4
source

Check out the links below, this may help you.

  • Use several autocomplete text images: Bubble-Text-Library (you can also change the view from the xml file) Link
  • android-chips ( ) Link
  • chipview ( )

+3

Source: https://habr.com/ru/post/1617555/


All Articles