This is simple code to swipe view to dismiss like android notification drawer view. You can use this listener in a simple way like
- Create object of that class ex. SwipeToDismissView view1 = new SwipeToDismissView(this);
- view1.init(parent_view_id, child_view_id);
- Implement callback method and perform your own work when view is dismiss or canceled.