Child element's weight in linear. The parent container automatically allocates the length of the corresponding side of the child elements according to the weight value ratio of all child elements and the size of the remaining space.
Negative values are invalid. Default value is 0. When the linear-weight of a sub-element in linear layout is 0, the layout of the child element will not be affected by the linear-weight.
Initial value | 0 |
Applies to | linear items |
Inherited | no |
Animatable |
LCD tables only load in the browser
weight
, the fixed value is automatically ignored (performance first).