I want to devide screen into 2 vertical segments. Bottom toolbar should be fixed – Let’s say I want LinearLayout to stay at bottom no matter what.
On top – I want ScrollView that will grow up to toolbar and then allow to scroll. Otherwise – it can be completely empty but toolbar still need to be on a bottom.
How can I achieve that?
As always, there are several ways. I would do the following
This uses a vertical linear layout and puts the buttons on the bottom using wrap_content, then gives the ScrollView the rest of the space by giving it a weight of “1”.