Im using a LinearLayout to put two buttons horizontally side-by-side, but I want to each button to size itself to use 50% of the horizontal space. I thought layout_weight of
I would set the layout_width of each button to 0px, then use the layout_weight=1 trick you mentioned.
layout_width
0px
layout_weight=1