当前位置: 首页>>代码示例>>Java>>正文


Java ViewCompat.MEASURED_STATE_TOO_SMALL属性代码示例

本文整理汇总了Java中android.support.v4.view.ViewCompat.MEASURED_STATE_TOO_SMALL属性的典型用法代码示例。如果您正苦于以下问题:Java ViewCompat.MEASURED_STATE_TOO_SMALL属性的具体用法?Java ViewCompat.MEASURED_STATE_TOO_SMALL怎么用?Java ViewCompat.MEASURED_STATE_TOO_SMALL使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在android.support.v4.view.ViewCompat的用法示例。


在下文中一共展示了ViewCompat.MEASURED_STATE_TOO_SMALL属性的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: shouldHandleMeasuredHeightTooSmall

private static boolean shouldHandleMeasuredHeightTooSmall(View view, PercentLayoutInfo info) {
    int state = ViewCompat.getMeasuredHeightAndState(view) & ViewCompat.MEASURED_STATE_MASK;
    return state == ViewCompat.MEASURED_STATE_TOO_SMALL && info.heightPercent >= 0 &&
            info.mPreservedParams.height == ViewGroup.LayoutParams.WRAP_CONTENT;
}
 
开发者ID:liu-xiao-dong,项目名称:JD-Test,代码行数:5,代码来源:PercentLayoutHelper.java

示例2: a

public final ac a(ai aiVar) {
    if (aiVar == null) {
        throw new NullPointerException();
    }
    this.z = aiVar;
    this.a |= ViewCompat.MEASURED_STATE_TOO_SMALL;
    return this;
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:8,代码来源:ac.java

示例3: resolveDialogTheme

static int resolveDialogTheme(Context context, int resid) {
    if (resid >= ViewCompat.MEASURED_STATE_TOO_SMALL) {
        return resid;
    }
    TypedValue outValue = new TypedValue();
    context.getTheme().resolveAttribute(R.attr.alertDialogTheme, outValue, true);
    return outValue.resourceId;
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:8,代码来源:AlertDialog.java

示例4: onMeasure

protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
    int initialWidthMeasureSpec;
    boolean stack = false;
    int widthSize = MeasureSpec.getSize(widthMeasureSpec);
    if (this.mAllowStacking) {
        if (widthSize > this.mLastWidthSize && isStacked()) {
            setStacked(false);
        }
        this.mLastWidthSize = widthSize;
    }
    boolean needsRemeasure = false;
    if (isStacked() || MeasureSpec.getMode(widthMeasureSpec) != 1073741824) {
        initialWidthMeasureSpec = widthMeasureSpec;
    } else {
        initialWidthMeasureSpec = MeasureSpec.makeMeasureSpec(widthSize, Integer.MIN_VALUE);
        needsRemeasure = true;
    }
    super.onMeasure(initialWidthMeasureSpec, heightMeasureSpec);
    if (this.mAllowStacking && !isStacked()) {
        if (VERSION.SDK_INT < 11) {
            int childWidthTotal = 0;
            for (int i = 0; i < getChildCount(); i++) {
                childWidthTotal += getChildAt(i).getMeasuredWidth();
            }
            if ((getPaddingLeft() + childWidthTotal) + getPaddingRight() > widthSize) {
                stack = true;
            }
        } else if ((ViewCompat.getMeasuredWidthAndState(this) & -16777216) == ViewCompat.MEASURED_STATE_TOO_SMALL) {
            stack = true;
        }
        if (stack) {
            setStacked(true);
            needsRemeasure = true;
        }
    }
    if (needsRemeasure) {
        super.onMeasure(widthMeasureSpec, heightMeasureSpec);
    }
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:39,代码来源:ButtonBarLayout.java

示例5: shouldHandleMeasuredWidthTooSmall

private static boolean shouldHandleMeasuredWidthTooSmall(View view, PercentLayoutInfo info) {
    int state = ViewCompat.getMeasuredWidthAndState(view) & ViewCompat.MEASURED_STATE_MASK;
    return state == ViewCompat.MEASURED_STATE_TOO_SMALL && info.widthPercent >= 0 &&
            info.mPreservedParams.width == ViewGroup.LayoutParams.WRAP_CONTENT;
}
 
开发者ID:liu-xiao-dong,项目名称:JD-Test,代码行数:5,代码来源:PercentLayoutHelper.java

示例6: Y

public final boolean Y() {
    return (this.b & ViewCompat.MEASURED_STATE_TOO_SMALL) == ViewCompat.MEASURED_STATE_TOO_SMALL;
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:3,代码来源:ab.java

示例7: a

public final void a(e eVar) {
    c();
    if ((this.b & 1) == 1) {
        eVar.a(1, this.c);
    }
    if ((this.b & 2) == 2) {
        eVar.a(2, this.d);
    }
    if ((this.b & 4) == 4) {
        eVar.a(3, this.e);
    }
    if ((this.b & 8) == 8) {
        eVar.a(4, this.f);
    }
    if ((this.b & 16) == 16) {
        eVar.a(5, this.g);
    }
    if ((this.b & 32) == 32) {
        eVar.a(6, this.h);
    }
    if ((this.b & 64) == 64) {
        eVar.a(7, this.i);
    }
    if ((this.b & 128) == 128) {
        eVar.a(8, this.j);
    }
    if ((this.b & 256) == 256) {
        eVar.a(9, this.k);
    }
    if ((this.b & 512) == 512) {
        eVar.a(10, this.l);
    }
    if ((this.b & 1024) == 1024) {
        eVar.a(11, this.m);
    }
    if ((this.b & 2048) == 2048) {
        eVar.a(12, this.n);
    }
    if ((this.b & 4096) == 4096) {
        eVar.a(13, this.o);
    }
    if ((this.b & 8192) == 8192) {
        eVar.a(14, this.p);
    }
    if ((this.b & 16384) == 16384) {
        eVar.a(15, this.q);
    }
    if ((this.b & 32768) == 32768) {
        eVar.a(16, this.r);
    }
    if ((this.b & 65536) == 65536) {
        eVar.a(18, this.s);
    }
    if ((this.b & 131072) == 131072) {
        eVar.a(19, this.t);
    }
    if ((this.b & 262144) == 262144) {
        eVar.a(20, this.u);
    }
    if ((this.b & 524288) == 524288) {
        eVar.a(23, this.v);
    }
    if ((this.b & 1048576) == 1048576) {
        eVar.a(31, this.w);
    }
    if ((this.b & 2097152) == 2097152) {
        eVar.a(32, this.x);
    }
    if ((this.b & 4194304) == 4194304) {
        eVar.a(33, this.y);
    }
    if ((this.b & GravityCompat.RELATIVE_LAYOUT_DIRECTION) == GravityCompat.RELATIVE_LAYOUT_DIRECTION) {
        eVar.a(34, this.z);
    }
    if ((this.b & ViewCompat.MEASURED_STATE_TOO_SMALL) == ViewCompat.MEASURED_STATE_TOO_SMALL) {
        eVar.a(35, this.A);
    }
    if ((this.b & 33554432) == 33554432) {
        eVar.a(36, this.B);
    }
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:81,代码来源:ab.java


注:本文中的android.support.v4.view.ViewCompat.MEASURED_STATE_TOO_SMALL属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。