Adds the ability to flip horizontally #6

Merged
merged 3 commits into from Nov 9, 2012

2 participants

@alexmedearis

Adds a simple optional parameter to FlipViewController to toggle horizontal or vertical flipping.

Old constructor:
public FlipViewController(Context context) {

New constructor:
public FlipViewController(Context context, boolean orientationVertical);

Alex Medearis added some commits Nov 8, 2012
@openaphid openaphid commented on the diff Nov 9, 2012
...rary/src/com/aphidmobile/flip/FlipViewController.java
@@ -87,11 +92,16 @@ public void onChanged() {
private float maxVelocity;
public FlipViewController(Context context) {
+ this(context, true);
+ }
+
+
+ public FlipViewController(Context context, boolean orientationVertical) {
@openaphid
Owner

How about changing it to FlipViewController(Context context, int orientation)? The valid values of orientation could be the constants you've already declared.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@openaphid openaphid merged commit c5ebcc9 into openaphid:master Nov 9, 2012
@openaphid openaphid pushed a commit that referenced this pull request Nov 9, 2012
Aphid Mobile Merge branch 'master' into develop with pull request #6
Conflicts:
	FlipView/Demo/AndroidManifest.xml
	FlipView/Demo/src/com/aphidmobile/flip/demo/MainActivity.java
	FlipView/FlipLibrary/src/com/aphidmobile/flip/FlipCards.java
	FlipView/FlipLibrary/src/com/aphidmobile/flip/FlipViewController.java
d5ff25e
@openaphid
Owner

@alexmedearis

I also found a minor issue about the incorrect rendering of shadow in horizontal mode.
Please refer to issue #7 for more details.

Thanks for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment