github:
https://github.com/anymyna/ui
步骤:
1、Module build.gradle 引入SwipeBackLayout
implementation 'me.imid.swipebacklayout.lib:library:1.1.0'
2、theme增加android:windowIsTranslucent
<item name="android:windowIsTranslucent">true</item>
3、Activity 继承 SwipeBackActivity:
4、 getSwipeBackLayout()设置SwipeBackLayout
getSwipeBackLayout().setEdgeTrackingEnabled(SwipeBackLayout.EDGE_LEFT);
参考:
https://github.com/ikew0ng/SwipeBackLayout