DialogFragment swipeable away like Tinder UI.

Min SDK   12
Latest Commit   2016-07-28 11:42:23
License   MIT

Github   https://github.com/kakajika/SwipeAwayDialog

         

使用APP客户端扫描二维码运行Demo


...

kakajika

Tokyo, Japan

http://www.kaji-labo.com/

         

类似的还有....
AlertDialogPro This project can make it easy to theme and custom Android's dialog. Also provides Holo and Material themes for old devices.
FabulousFilter Android library to animate Floating Action Button to Bottom Sheet Dialog and vice-versa
material-dialogs A beautiful, fluid, and customizable dialogs API.
README

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.