Skip to content
Permalink
Browse files

change enums order

  • Loading branch information...
VadimHalimendikCr committed Aug 9, 2017
1 parent 1bc69a2 commit d17b59c3356df29e98655c2962188cc650cc9440
@@ -8,8 +8,8 @@
/**
* Interface with pre-defined constants for orientation of LoopBar
*/
@IntDef({Orientation.ORIENTATION_VERTICAL_LEFT, Orientation.ORIENTATION_HORIZONTAL_BOTTOM,
Orientation.ORIENTATION_VERTICAL_RIGHT, Orientation.ORIENTATION_HORIZONTAL_TOP})
@IntDef({Orientation.ORIENTATION_VERTICAL_LEFT, Orientation.ORIENTATION_VERTICAL_RIGHT,
Orientation.ORIENTATION_HORIZONTAL_TOP, Orientation.ORIENTATION_HORIZONTAL_BOTTOM})
@Retention(RetentionPolicy.SOURCE)
public @interface Orientation {

@@ -19,17 +19,17 @@
int ORIENTATION_VERTICAL_LEFT = 0;

/**
* Constant representing horizontal bottom orientation state of LoopBar
* Constant representing vertical right orientation state of LoopBar
*/
int ORIENTATION_HORIZONTAL_BOTTOM = 1;
int ORIENTATION_VERTICAL_RIGHT = 1;

/**
* Constant representing vertical right orientation state of LoopBar
* Constant representing horizontal top orientation state of LoopBar
*/
int ORIENTATION_VERTICAL_RIGHT = 2;
int ORIENTATION_HORIZONTAL_TOP = 2;

/**
* Constant representing horizontal top orientation state of LoopBar
* Constant representing horizontal bottom orientation state of LoopBar
*/
int ORIENTATION_HORIZONTAL_TOP = 3;
int ORIENTATION_HORIZONTAL_BOTTOM = 3;
}
@@ -4,9 +4,9 @@
<declare-styleable name="LoopBarView" tools:ignore="ResourceName">
<attr name="enls_orientation" format="integer">
<flag name="verticalLeft" value="0" />
<flag name="horizontalBottom" value="1" />
<flag name="verticalRight" value="2"/>
<flag name="horizontalTop" value="3"/>
<flag name="verticalRight" value="1"/>
<flag name="horizontalTop" value="2"/>
<flag name="horizontalBottom" value="3" />
</attr>

<attr name="enls_selectionGravity" format="integer">

0 comments on commit d17b59c

Please sign in to comment.
You can’t perform that action at this time.