mardi 5 mai 2015

Set the the height of all items on a row of a GridView depending on the tallest item

In an app that I'm developing I need to display a GridView with items that depending on its text (more than one line of text) may be of different height and I want to avoid that the items are shown with different heights since it's quite ugly.

When the text is only one line the GridView the items in the row are displayed properly but when the text is larger than one line they are shown like this:

image

How I can avoid this behavior and set the highest height of an item of a row as the height of all items of that row?

Aucun commentaire:

Enregistrer un commentaire