Android GridView wrap_content Cell width and number of dynamic items per row… here is a solution to the problem.
Android GridView wrap_content Cell width and number of dynamic items per row
In Android, how do I create two GridViews (or supposedly better RecyclerView) to create something that looks like this….
… The number of items/cells per row will vary depending on the text length, and the two Views should not be able to scroll independently (i.e. the rootview may be a ScrollView and it will provide the ability to scroll).
I’ve tried most of the GridView, but I can’t get the cell width wrap_content property to work.
Thank you.
Solution
You can use Android’s label View, and you can create views as needed.
For more information, see the libraries below