I am using a ListView with just a few items. The items are to be vertically enlarged to fill the area given to the list view. So instead of:
_____
1
2
3
____
I want
_____
1
_
2
_
3
____
I am not sure how to do this. I looked at using getView on my Adapter, but the ViewGroup return 0 for the height, and 0 for the child count. When I make my adapter have a ListView reference, I can get the child count, but height is still 0.
I'm not sure if I need to extend ListView or ViewGroup or what I need to override.
Thanks.
After much digging, i found the issue is the mysterious Layout Inflater issue described here. Once I changed it to inflate(layoutIdToInflate, parent, false); (having been inflate(layoutIdToInflate, null); the heights started working.