DialogFragment swipeable away like Tinder UI.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example
gradle/wrapper
library
.gitignore Modify .gitignore Apr 30, 2016
.travis.yml Fix .travis.yml May 15, 2016
LICENSE
README.md Update README.md Jul 28, 2016
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle Initial commit Aug 15, 2015

README.md

SwipeAwayDialog

Platform API Android Arsenal Build Status

Android DialogFragment that enables Dialog to be swiped away to dismiss.
It's extremely easy to make Tinder-like UI.

Install

dependencies {
    compile 'com.labo.kaji:swipeawaydialog:0.1.1'
}

Usage

Just extend SwipeAwayDialogFragment instead of DialogFragment.

public class ExampleDialogFragment extends SwipeAwayDialogFragment {
    // Implement DialogFragment as usual.
}

If you want to handle swiped away event, implement onSwipedAway.
You can prevent dismissing by returning true.

@Override
public boolean onSwipedAway(boolean toRight) {
    return false;
}

License

MIT License.