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.
ListView
Using LinearLayout, set the height of your ListView and Button to wrap_content and add a weight=1 to ListView. This should work as you want. And yes, set the layout_gravity of the Button to bottom
LinearLayout
Button
wrap_content
layout_gravity
bottom