11 2021 档案
摘要:/** * * 2021/11/30 * @author xiaotie */ @SuppressLint("MissingPermission") class VibrateHelp(context: Context) { private var vibrator: Vibrator? = nul
阅读全文
摘要:AnimatedVisibility( //定义内容是否应该可见 visible = shown, /* slideIn、slideInVertically、slideInVertically 只能同时存在一个 enter = slideInVertically( //从离本身(小于零(上方)大于零
阅读全文
摘要:概念 密封类用来限制类的继承关系,子类数量是固定的。 可以在类名之前使用sealed关键字将类声明为密封类。 当对象具有来自有限集的类型之一,但不能具有任何其他类型时,使用密封类。 密封类的构造函数在默认情况下是私有的,它也不能允许声明为非私有。 简单来理解就是他是一个拓展版的枚举(enum),不同
阅读全文
摘要:请参考官方示例https://developer.android.google.cn/codelabs/basic-android-kotlin-training-intro-room-flow?hl=zh_cn#0导入依赖 def roomVersion = "2.3.0" implementat
阅读全文