Lines Matching defs:weight

44  * grow to fill up any remaining space in the layout by setting the <em>weight</em> member of
390 * When true, all children with a weight will be considered having
394 * @return True to measure children with a weight using the minimum
402 * When set to true, all children with a weight will be considered having
408 * @param enabled True to measure children with a weight using the
518 * @return A number greater than 0.0f if the weight sum is defined, or
519 * a number lower than or equals to 0.0f if not weight sum is
535 * to 0.0f if the weight sum should be computed from the children's
629 totalWeight += lp.weight;
631 if (heightMode == MeasureSpec.EXACTLY && lp.height == 0 && lp.weight > 0) {
641 if (lp.height == 0 && lp.weight > 0) {
651 // previous children have given a weight, then we allow it to
682 // weight. fail fast to aid the developer.
683 if (i < baselineChildIndex && lp.weight > 0) {
685 + "less than mBaselineAlignedChildIndex has weight > 0, which "
686 + "won't work. Either remove the weight, or don't set "
707 if (lp.weight > 0) {
764 // Either expand children with weight to take up available space or
782 float childExtra = lp.weight;
857 float childExtra = lp.weight;
976 totalWeight += lp.weight;
978 if (widthMode == MeasureSpec.EXACTLY && lp.width == 0 && lp.weight > 0) {
1004 if (lp.width == 0 && lp.weight > 0) {
1014 // previous children have given a weight, then we allow it to
1072 if (lp.weight > 0) {
1148 // Either expand children with weight to take up available space or
1171 float childExtra = lp.weight;
1278 float childExtra = lp.weight;
1760 * will be pro-rated among all views whose weight is greater than 0.
1762 public float weight;
1779 weight = a.getFloat(R.styleable.LinearLayoutCompat_Layout_android_layout_weight, 0);
1790 weight = 0;
1795 * and weight.
1801 * @param weight the weight
1803 public LayoutParams(int width, int height, float weight) {
1805 this.weight = weight;
1823 * Copy constructor. Clones the width, height, margin values, weight,
1831 this.weight = source.weight;