Android Buttons in ScrollView sized to half the screen -


I want to be able to scroll through the buttons in the scrollview, and each button should be half-screen . / P>

  _____________ / __________ \ | Button 1 | \ __________ / / __________ \ | Button 2 | \ __________ / _____________   

... scroll a bit ...

  _____________ | Button 1 | \ __________ / / __________ \ | Button 2 | \ __________ / _____________   

... a bit more ...

  _____________ \ __________ / / __________ \ | Button 2 | \ __________ / / __________ \ | Button 3 | _____________   

If it was just in a LinearLayout, then I would put Layout_weight on set 1, but I do not think it will work in ScrollView.

As I thought, you almost certainly want to do this program with screen measurements . I've just switched to a visibleflipper and use the previous / next buttons.

Comments