本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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);
}
}
示例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;
}
示例6: Y
public final boolean Y() {
return (this.b & ViewCompat.MEASURED_STATE_TOO_SMALL) == ViewCompat.MEASURED_STATE_TOO_SMALL;
}
示例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);
}
}