android 右滑关闭activity
https://github.com/anzewei/ParallaxBackLayout1.导入依赖compile 'com.github.anzewei:parallaxbacklayout:lastversion'2.APP 注册ParallaxHelperregisterActivityLifecycleCallbacks(ParallaxHelper.getInstance());3.在
·
https://github.com/anzewei/ParallaxBackLayout
1.导入依赖
compile 'com.github.anzewei:parallaxbacklayout:lastversion'
2.APP 注册ParallaxHelper
registerActivityLifecycleCallbacks(ParallaxHelper.getInstance());
3.在需要滑动关闭的页面增加ParallaxBack
@ParallaxBack( edge = ParallaxBack.Edge.LEFT, layout = ParallaxBack.Layout.COVER, edgeMode = ParallaxBack.EdgeMode.FULLSCREEN ) public class DetailActivity extends AppCompatActivity { 。。。 }
更多推荐
已为社区贡献8条内容
所有评论(0)