Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Adds the ability to flip horizontally #6

Merged
merged 3 commits into from
Nov 9, 2012

Conversation

alexmedearis
Copy link

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);

}


public FlipViewController(Context context, boolean orientationVertical) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

openaphid added a commit that referenced this pull request Nov 9, 2012
Adds the ability to flip horizontally
@openaphid openaphid merged commit c5ebcc9 into openaphid:master Nov 9, 2012
openaphid pushed a commit that referenced this pull request Nov 9, 2012
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
@openaphid
Copy link
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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants