Projects
View on GitHub
kakajika/SwipeAwayDialog
About
A DialogFragment that can be swiped away like a Tinder UI.
Other ProjectsMeasured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalSwipeAwayDialog
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.
Explore related projects
Loading…