1. 首页
  2. 数据库
  3. 其它
  4. SwipeBackLayout(Activity滑动返回)使用Kotlin封装使用

SwipeBackLayout(Activity滑动返回)使用Kotlin封装使用

上传者: 2021-02-01 15:41:03上传 PDF文件 27.84KB 热度 20次
这是一个SwipeBackLayout(Activity滑动返回)使用Kotlin在项目中自己封装使用教程。 1.这个作为Activity的基类。 2.重写setSwipeBackEnable()的方法可以在某个页面设置当前页面禁止滑动返回(当前Activity关闭滑动功能). 3.官方Demo链接:https://github.com/ikew0ng/SwipeBackLayout 以下是封装的代码: package com.hzq.xiaoqiang.base import android.os.Bundle import android.view.View import android
下载地址
用户评论