Limit height of ListView on Android

后端 未结 16 1329
广开言路
广开言路 2020-11-28 23:07

I want to show a button under a ListView. Problem is, if the ListView gets extended (items added...), the button is pushed out of the screen.

16条回答
  •  粉色の甜心
    2020-11-28 23:35

    Since there's no MaxHeight attribute, your best bet is either to set the height of the ListView to a set value, or to use wrap_content.

提交回复
热议问题