How to limit the height of a ListView within a GridLayout?
I have a GridLayout containing a ListView and a TextView . When items are added to the ListView it will grow in size and push the TextView below it out of the screen. I thought that by setting layout_gravity="fill" on the ListView it would not grow at all but rather take up all the available space. How do I configure the ListView to take up the available space instead of growing and pushing views below it out of the screen? I am looking for a solution using a GridLayout . I am aware that in my case a LinearLayout would work aswell. However this is just a minimal test case to illustrate my