Limit height of ListView on Android

后端 未结 16 1343
广开言路
广开言路 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:36

    in LinearLayout, just add android:layout_weight="1" to you ListView

提交回复
热议问题