Lines Matching defs:weight

40  * grow to fill up any remaining space in the layout by setting the <em>weight</em> member of
410 * When true, all children with a weight will be considered having
414 * @return True to measure children with a weight using the minimum
424 * When set to true, all children with a weight will be considered having
430 * @param enabled True to measure children with a weight using the
546 * @return A number greater than 0.0f if the weight sum is defined, or
547 * a number lower than or equals to 0.0f if not weight sum is
563 * to 0.0f if the weight sum should be computed from the children's
657 totalWeight += lp.weight;
659 if (heightMode == MeasureSpec.EXACTLY && lp.height == 0 && lp.weight > 0) {
668 if (lp.height == 0 && lp.weight > 0) {
678 // previous children have given a weight, then we allow it to
709 // weight. fail fast to aid the developer.
710 if (i < baselineChildIndex && lp.weight > 0) {
712 + "less than mBaselineAlignedChildIndex has weight > 0, which "
713 + "won't work. Either remove the weight, or don't set "
733 if (lp.weight > 0) {
790 // Either expand children with weight to take up available space or
807 float childExtra = lp.weight;
881 float childExtra = lp.weight;
999 totalWeight += lp.weight;
1001 if (widthMode == MeasureSpec.EXACTLY && lp.width == 0 && lp.weight > 0) {
1025 if (lp.width == 0 && lp.weight > 0) {
1035 // previous children have given a weight, then we allow it to
1092 if (lp.weight > 0) {
1168 // Either expand children with weight to take up available space or
1190 float childExtra = lp.weight;
1297 float childExtra = lp.weight;
1777 * will be pro-rated among all views whose weight is greater than 0.
1780 public float weight;
1813 weight = a.getFloat(com.android.internal.R.styleable.LinearLayout_Layout_layout_weight, 0);
1824 weight = 0;
1829 * and weight.
1835 * @param weight the weight
1837 public LayoutParams(int width, int height, float weight) {
1839 this.weight = weight;
1859 ", height=" + sizeToString(height) + " weight=" + weight + "}";