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/

         

类似的还有....
BottomDialogDemo DialogFragment 实现底部弹窗
PlaceSearchDialog A place autocomplete search dialog which uses Google's places API for finding results.
BottomDialog BottomDialog is a bottom dialog layout implemented with DialogFragment, Supports pop-up animation, Support any layout
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.