Lines Matching defs:weight

46  * grow to fill up any remaining space in the layout by setting the <em>weight</em> member of
475 * When true, all children with a weight will be considered having
479 * @return True to measure children with a weight using the minimum
489 * When set to true, all children with a weight will be considered having
495 * @param enabled True to measure children with a weight using the
612 * @return A number greater than 0.0f if the weight sum is defined, or
613 * a number lower than or equals to 0.0f if not weight sum is
629 * to 0.0f if the weight sum should be computed from the children's
733 totalWeight += lp.weight;
735 final boolean useExcessSpace = lp.height == 0 && lp.weight > 0;
754 // previous children have given a weight, then we allow it to
789 // weight. fail fast to aid the developer.
790 if (i < baselineChildIndex && lp.weight > 0) {
792 + "less than mBaselineAlignedChildIndex has weight > 0, which "
793 + "won't work. Either remove the weight, or don't set "
813 if (lp.weight > 0) {
869 // Either expand children with weight to take up available space or
886 final float childWeight = lp.weight;
955 float childExtra = lp.weight;
1073 totalWeight += lp.weight;
1075 final boolean useExcessSpace = lp.width == 0 && lp.weight > 0;
1113 // previous children have given a weight, then we allow it to
1174 if (lp.weight > 0) {
1249 // Either expand children with weight to take up available space or
1270 final float childWeight = lp.weight;
1371 float childExtra = lp.weight;
1893 * will be pro-rated among all views whose weight is greater than 0.
1896 public float weight;
1929 weight = a.getFloat(com.android.internal.R.styleable.LinearLayout_Layout_layout_weight, 0);
1940 weight = 0;
1945 * and weight.
1951 * @param weight the weight
1953 public LayoutParams(int width, int height, float weight) {
1955 this.weight = weight;
1973 * Copy constructor. Clones the width, height, margin values, weight,
1981 this.weight = source.weight;
1988 ", height=" + sizeToString(height) + " weight=" + weight + "}";
1996 encoder.addProperty("layout:weight", weight);