Vipul J
Vipul J

Reputation: 6691

Having dynamic height of a view inside a row in Listview

I want to build somthing like this, where each row is divided in to two halves and each one of them might have different height based on the content. Right now I am using listview and can't achieve this. Any leads on how to do this?

enter image description here

Upvotes: 0

Views: 138

Answers (1)

M-Wajeeh
M-Wajeeh

Reputation: 17284

You are looking for Staggered GridView. A quick search on Google shows 2 open source libraries:

  1. https://github.com/etsy/AndroidStaggeredGrid enter image description here

  2. https://github.com/maurycyw/StaggeredGridView enter image description here

Upvotes: 3

Related Questions