I don\'t understand how to use this attribute. Can anyone tell me more about it?
Combining both answers from
Flo & rptwsthi and roetzi,
Do remember to change your layout_width=0dp/px
, else the layout_weight
behaviour will act reversely with biggest number occupied the smallest space and lowest number occupied the biggest space.
Besides, some weights combination will caused some layout cannot be shown (since it over occupied the space).
Beware of this.