I want to be able to scroll through buttons in a scrollview, and have each button be half the size of the screen.
_____________
/__________\
| BUTTON 1 |
\__________/
/__________\
| BUTTON 2 |
\__________/
_____________
…scroll a bit…
_____________
| BUTTON 1 |
\__________/
/__________\
| BUTTON 2 |
\__________/
_____________
… bit more…
_____________
\__________/
/__________\
| BUTTON 2 |
\__________/
/__________\
| BUTTON 3 |
_____________
If it was just in a LinearLayout, I’d use layout_weight set to 1, but I don’t think that would work in a ScrollView.
As I thought, you’d almost definitely have to do this programatically with screen measurements. I just switched to using a ViewFlipper and previous/next buttons.