Back to project page ExampleApp.
The source code is released under:
Copyright (c) 2014, Altinn All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redis...
If you think the Android project ExampleApp listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package net.simonvt.menudrawer; //from w w w . j a v a2 s.co 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); } }