摘要: val bottom = remember { mutableStateOf(0f) } ViewCompat.setOnApplyWindowInsetsListener(LocalView.current){ _, insets -> bottom.value = insets?.getInse 阅读全文
posted @ 2022-07-19 11:06 勤奋的小铁 阅读(647) 评论(0) 推荐(0) 编辑
摘要: * rememberCoroutineScope 具体使用请看将 Kotlin 协程与生命周期感知型组件一起使用 例 private val mainScope:CoroutineScope = MainScope() override fun onCreate(savedInstanceState 阅读全文
posted @ 2022-07-11 14:44 勤奋的小铁 阅读(115) 评论(0) 推荐(0) 编辑
摘要: Android sdkmanager not found. Update to the latest Android SDK and ensure that the cmdline-tools are installed to resolve this. 阅读全文
posted @ 2022-06-10 15:40 勤奋的小铁 阅读(1236) 评论(0) 推荐(0) 编辑
摘要: android Dialog 取消阴影 阅读全文
posted @ 2022-06-01 11:33 勤奋的小铁 阅读(414) 评论(0) 推荐(0) 编辑
摘要: 建造者模式理解 建造者模式(Builder Pattern)使用多个简单的对象一步一步构建成一个复杂的对象。这种类型的设计 模式属于创建型模式,它提供了一种创建对象的最佳方式。 何时使用:一些基本部件不会变,而其组合经常变化的时候。如何解决:将变与不变分离开。优点: 1、建造者独立,易扩展。 2、便 阅读全文
posted @ 2022-05-31 17:42 勤奋的小铁 阅读(130) 评论(0) 推荐(0) 编辑
摘要: padding(边距) * 在设置size之前设置相当于外边距 * 在设置size之后设置相当于内边距,组件大小不变 * 设置背景,对应背景来说,在它之前设置的也相当于外边距 * 同理点击区域的大小也一样的 background(背景) Color 单色 或者 Brush 多色混合 https:// 阅读全文
posted @ 2022-05-30 11:40 勤奋的小铁 阅读(42) 评论(0) 推荐(0) 编辑
摘要: updateConfiguration废弃,createConfigurationContext无效 阅读全文
posted @ 2022-05-25 17:00 勤奋的小铁 阅读(1480) 评论(0) 推荐(0) 编辑
摘要: Android 将图片保存到系统相册 兼容Android Q以上 阅读全文
posted @ 2022-05-25 13:48 勤奋的小铁 阅读(819) 评论(0) 推荐(0) 编辑
摘要: Android 模块打包生成aar 适用于4.2.2以上的AS版本 plugins {id 'maven-publish'} 阅读全文
posted @ 2022-05-23 18:04 勤奋的小铁 阅读(87) 评论(0) 推荐(0) 编辑
摘要: Flutter State生命周期 阅读全文
posted @ 2022-05-23 17:30 勤奋的小铁 阅读(68) 评论(0) 推荐(0) 编辑