Skip to content

Commit

Permalink
change enums order
Browse files Browse the repository at this point in the history
  • Loading branch information
VadimHalimendikCr committed Aug 9, 2017
1 parent 1bc69a2 commit d17b59c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand All @@ -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;
}
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit d17b59c

Please sign in to comment.