set the android:layout_width of the children to "0dp"
set the android:weightSum of the parent
(edit: as Jason Moore noticed, this attribute is optional, because by default it is set to the children's layout_weight sum)
set the android:layout_weight of each child proportionally (e.g. weightSum="5", three children: layout_weight="1", layout_weight="3", layout_weight="1")