Is it possible to evenly distribute buttons across the width of a LinearLayout

Expanding on fedj’s answer, if you set layout_width to 0dp and set the layout_weight for each of the buttons to 1, the available width will be shared equally between the buttons.

Leave a Comment