In my application, I have a layout which includes a LinearLayout--> Top
, GridView--> Middle
and a set of views which should be aligned to the bottom
.
1. Layout when gridview is not having much content
2. Layout when grid view contents are increased
3. Layout as how it should be shown when Gridview content is very large
Presently my gridview is expanding when the contents in it is increasing that the lower level contents are not visible in the screen.
I don't want to assign specific height to the grid view as it is looking weird in screens with different dimensions.
Is there any way that the gridview expands only upto the bottom views?
My parent layout is LinearLayout. I have tried out with relative layout, but it is not working.