Android Open Source - BT4Android-trunk Ics View

From Project

Back to project page BT4Android-trunk.


The source code is released under:

Apache License

If you think the Android project BT4Android-trunk listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.actionbarsherlock.internal.widget;
/* ww w .  ja  v  a  2  s  . c o m*/
import android.view.View;

final class IcsView {
    //No instances
    private IcsView() {}

     * Return only the state bits of {@link #getMeasuredWidthAndState()}
     * and {@link #getMeasuredHeightAndState()}, combined into one integer.
     * The width component is in the regular bits {@link #MEASURED_STATE_MASK}
     * and the height component is at the shifted bits
    public static int getMeasuredStateInt(View child) {
        return (child.getMeasuredWidth()&View.MEASURED_STATE_MASK)
                | ((child.getMeasuredHeight()>>View.MEASURED_HEIGHT_STATE_SHIFT)
                        & (View.MEASURED_STATE_MASK>>View.MEASURED_HEIGHT_STATE_SHIFT));

Java Source Code List