Android Open Source - Android-Pulley-Menu Position






From Project

Back to project page Android-Pulley-Menu.

License

The source code is released under:

Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCT...

If you think the Android project Android-Pulley-Menu 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 anshul.pulleymenu;
//from w w w.  j a  v a  2s .  c o  m
import android.util.SparseArray;

/**
 * Enums used for positioning the drawer.
 */
public enum Position {
    // Positions the drawer to the left of the content.
    LEFT(0),

    // Positions the drawer above the content.
    TOP(1),

    // Positions the drawer to the right of the content.
    RIGHT(2),

    // Positions the drawer below the content.
    BOTTOM(3);

    final int mValue;

    Position(int value) {
        mValue = value;
    }

    private static final SparseArray<Position> STRING_MAPPING = new SparseArray<Position>();

    static {
        for (Position via : Position.values()) {
            STRING_MAPPING.put(via.mValue, via);
        }
    }

    public static Position fromValue(int value) {
        return STRING_MAPPING.get(value);
    }
}




Java Source Code List

anshul.pulleymenu.BuildLayerFrameLayout.java
anshul.pulleymenu.ColorDrawable.java
anshul.pulleymenu.CustomListViewAdapter.java
anshul.pulleymenu.DraggableDrawer.java
anshul.pulleymenu.FloatScroller.java
anshul.pulleymenu.MenuDrawer.java
anshul.pulleymenu.NoClickThroughFrameLayout.java
anshul.pulleymenu.OverlayDrawer.java
anshul.pulleymenu.PeekInterpolator.java
anshul.pulleymenu.Position.java
anshul.pulleymenu.PulleyMenu.java
anshul.pulleymenu.Scroller.java
anshul.pulleymenu.SinusoidalInterpolator.java
anshul.pulleymenu.SlideDrawable.java
anshul.pulleymenu.SlidingDrawer.java
anshul.pulleymenu.SmoothInterpolator.java
anshul.pulleymenu.StaticDrawer.java
anshul.pulleymenu.ViewHelper.java
anshul.pulleymenu.compat.ActionBarHelperNative.java
anshul.pulleymenu.compat.ActionBarHelperSherlock.java
anshul.pulleymenu.compat.ActionBarHelper.java
anshul.pulleymenu.samples.PulleyMenuSample.java
anshul.pulleymenu.test.java