How to set GridView row height for screen in Android

I want to stretch the GridView row to fit the height of the screen in Android. How to do it?

+3
source share
1 answer

You control the height of your lines, due to the fact that you insert them. Since your cells have more than one widget, they are supposedly wrapped in LinearLayout or something like that. Set LinearLayouts - this is a certain height, and all lines will be this height.

Personally, I think you should resize your images if you have text above and below each image based on each cell.

With Link Community Link

+1
source

All Articles