Implement the function of Android sliding exit activity
android swipes right to exit activity
//Swipe right to delete compile ':swipebackhelper:3.1.2'
Then add the code in Baseactivity:
Implementation code:
(this); (this) .setSwipeBackEnable(true) .setSwipeSensitivity(0.5f) .setSwipeRelateEnable(true) .setSwipeRelateOffset(300); @Override protected void onDestroy() { (this); (); }
The above is an example of Android sliding out of the application. If you have any questions, please leave a message or go to the community of this site to communicate and discuss. Thank you for reading. I hope it can help you. Thank you for your support for this site!