LinearLayout.WeightSum Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the desired weights sum. -or- Defines the desired weights sum.
public virtual float WeightSum { [Android.Runtime.Register("getWeightSum", "()F", "GetGetWeightSumHandler")] get; [Android.Runtime.Register("setWeightSum", "(F)V", "GetSetWeightSum_FHandler")] set; }
[<get: Android.Runtime.Register("getWeightSum", "()F", "GetGetWeightSumHandler")>]
[<set: Android.Runtime.Register("setWeightSum", "(F)V", "GetSetWeightSum_FHandler")>]
member this.WeightSum : single with get, set
Property Value
A number greater than 0.0f if the weight sum is defined, or a number lower than or equals to 0.0f if not weight sum is to be used.
- Attributes
Remarks
Property getter documentation:
Returns the desired weights sum.
Java documentation for android.widget.LinearLayout.getWeightSum()
.
Property setter documentation:
Defines the desired weights sum. If unspecified the weights sum is computed at layout time by adding the layout_weight of each child.
This can be used for instance to give a single child 50% of the total available space by giving it a layout_weight of 0.5 and setting the weightSum to 1.0.
Java documentation for android.widget.LinearLayout.setWeightSum(float)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.