Android GridView wrap_content cell width and dynamic number of items per row

Viewed 1185

In Android, how do I create two GridView(s) (or the supposedly better RecyclerViews) to create something that looks like this...

mockup

...where the number of items/cells per row will vary depending on the text length and both views should not be able to scroll independently (ie. the rootview would probably be a ScrollView and it will provide the ability to scroll).

I've tried GridView for the most part but I can't make the cell width wrap_content property to work.

Thanks.

1 Answers
Related