當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。