android.support.v4.view.ViewCompat#MEASURED_STATE_TOO_SMALL源码实例Demo

下面列出了android.support.v4.view.ViewCompat#MEASURED_STATE_TOO_SMALL 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: letv   文件: ac.java
public final ac a(ai aiVar) {
    if (aiVar == null) {
        throw new NullPointerException();
    }
    this.z = aiVar;
    this.a |= ViewCompat.MEASURED_STATE_TOO_SMALL;
    return this;
}
 
private static boolean shouldHandleMeasuredWidthTooSmall(View view, PercentLayoutInfo info)
{
    int state = ViewCompat.getMeasuredWidthAndState(view) & ViewCompat.MEASURED_STATE_MASK;
    if (info == null || info.widthPercent == null)
    {
        return false;
    }
    return state == ViewCompat.MEASURED_STATE_TOO_SMALL && info.widthPercent.percent >= 0 &&
            info.mPreservedParams.width == ViewGroup.LayoutParams.WRAP_CONTENT;
}
 
private static boolean shouldHandleMeasuredHeightTooSmall(View view, PercentLayoutInfo info)
{
    int state = ViewCompat.getMeasuredHeightAndState(view) & ViewCompat.MEASURED_STATE_MASK;
    if (info == null || info.heightPercent == null)
    {
        return false;
    }
    return state == ViewCompat.MEASURED_STATE_TOO_SMALL && info.heightPercent.percent >= 0 &&
            info.mPreservedParams.height == ViewGroup.LayoutParams.WRAP_CONTENT;
}
 
源代码4 项目: JD-Test   文件: PercentLayoutHelper.java
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;
}
 
源代码5 项目: JD-Test   文件: PercentLayoutHelper.java
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;
}
 
源代码6 项目: letv   文件: ab.java
public final boolean Y() {
    return (this.b & ViewCompat.MEASURED_STATE_TOO_SMALL) == ViewCompat.MEASURED_STATE_TOO_SMALL;
}
 
源代码7 项目: letv   文件: ab.java
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);
    }
}
 
源代码8 项目: letv   文件: ab.java
public final int c() {
    int i = this.D;
    if (i == -1) {
        i = 0;
        if ((this.b & 1) == 1) {
            i = e.b(1, this.c) + 0;
        }
        if ((this.b & 2) == 2) {
            i += e.b(2, this.d);
        }
        if ((this.b & 4) == 4) {
            i += e.b(3, this.e);
        }
        if ((this.b & 8) == 8) {
            i += e.b(4, this.f);
        }
        if ((this.b & 16) == 16) {
            i += e.b(5, this.g);
        }
        if ((this.b & 32) == 32) {
            i += e.b(6, this.h);
        }
        if ((this.b & 64) == 64) {
            i += e.b(7, this.i);
        }
        if ((this.b & 128) == 128) {
            i += e.b(8, this.j);
        }
        if ((this.b & 256) == 256) {
            i += e.b(9, this.k);
        }
        if ((this.b & 512) == 512) {
            i += e.b(10, this.l);
        }
        if ((this.b & 1024) == 1024) {
            i += e.b(11, this.m);
        }
        if ((this.b & 2048) == 2048) {
            i += e.b(12, this.n);
        }
        if ((this.b & 4096) == 4096) {
            i += e.b(13, this.o);
        }
        if ((this.b & 8192) == 8192) {
            i += e.b(14, this.p);
        }
        if ((this.b & 16384) == 16384) {
            i += e.b(15, this.q);
        }
        if ((this.b & 32768) == 32768) {
            i += e.b(16, this.r);
        }
        if ((this.b & 65536) == 65536) {
            i += e.b(18, this.s);
        }
        if ((this.b & 131072) == 131072) {
            i += e.b(19, this.t);
        }
        if ((this.b & 262144) == 262144) {
            i += e.b(20, this.u);
        }
        if ((this.b & 524288) == 524288) {
            i += e.b(23, this.v);
        }
        if ((this.b & 1048576) == 1048576) {
            i += e.b(31, this.w);
        }
        if ((this.b & 2097152) == 2097152) {
            i += e.b(32, this.x);
        }
        if ((this.b & 4194304) == 4194304) {
            i += e.b(33, this.y);
        }
        if ((this.b & GravityCompat.RELATIVE_LAYOUT_DIRECTION) == GravityCompat.RELATIVE_LAYOUT_DIRECTION) {
            i += e.b(34, this.z);
        }
        if ((this.b & ViewCompat.MEASURED_STATE_TOO_SMALL) == ViewCompat.MEASURED_STATE_TOO_SMALL) {
            i += e.b(35, this.A);
        }
        if ((this.b & 33554432) == 33554432) {
            i += e.b(36, this.B);
        }
        this.D = i;
    }
    return i;
}
 
 同类方法