Android Open Source - MediaCodecVideoPlayer Position






From Project

Back to project page MediaCodecVideoPlayer.

License

The source code is released under:

Apache License

If you think the Android project MediaCodecVideoPlayer 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 net.simonvt.menudrawer;
/*ww  w  . ja va2s .  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),

    /**
     * Position the drawer at the start edge. This will position the drawer to the {@link #LEFT} with LTR languages and
     * {@link #RIGHT} with RTL languages.
     */
    START(4),

    /**
     * Position the drawer at the end edge. This will position the drawer to the {@link #RIGHT} with LTR languages and
     * {@link #LEFT} with RTL languages.
     */
    END(5);

    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

com.example.hellojni.HelloJni.java
com.jasonsoft.mediacodecvideoplayer.LoadThumbnailTask.java
com.jasonsoft.mediacodecvideoplayer.MediaCodecVideoPlayerActivity.java
com.jasonsoft.mediacodecvideoplayer.MenuDrawerBaseActivity.java
com.jasonsoft.mediacodecvideoplayer.RoundedCornerImageView.java
com.jasonsoft.mediacodecvideoplayer.Utils.java
com.jasonsoft.mediacodecvideoplayer.VideoSurfaceView.java
com.jasonsoft.mediacodecvideoplayer.adapter.MenuAdapter.java
com.jasonsoft.mediacodecvideoplayer.cache.CacheManager.java
com.jasonsoft.mediacodecvideoplayer.data.AsyncDrawable.java
com.jasonsoft.mediacodecvideoplayer.data.LoadThumbnailParams.java
com.jasonsoft.mediacodecvideoplayer.data.LoadThumbnailResult.java
com.jasonsoft.mediacodecvideoplayer.data.MenuDrawerCategory.java
com.jasonsoft.mediacodecvideoplayer.data.MenuDrawerItem.java
net.simonvt.menudrawer.BuildLayerFrameLayout.java
net.simonvt.menudrawer.ColorDrawable.java
net.simonvt.menudrawer.DraggableDrawer.java
net.simonvt.menudrawer.FloatScroller.java
net.simonvt.menudrawer.MenuDrawer.java
net.simonvt.menudrawer.NoClickThroughFrameLayout.java
net.simonvt.menudrawer.OverlayDrawer.java
net.simonvt.menudrawer.PeekInterpolator.java
net.simonvt.menudrawer.Position.java
net.simonvt.menudrawer.Scroller.java
net.simonvt.menudrawer.SinusoidalInterpolator.java
net.simonvt.menudrawer.SlideDrawable.java
net.simonvt.menudrawer.SlidingDrawer.java
net.simonvt.menudrawer.SmoothInterpolator.java
net.simonvt.menudrawer.StaticDrawer.java
net.simonvt.menudrawer.ViewHelper.java
net.simonvt.menudrawer.compat.ActionBarHelperCompat.java
net.simonvt.menudrawer.compat.ActionBarHelperNative.java
net.simonvt.menudrawer.compat.ActionBarHelper.java