07 2022 档案

摘要:@SuppressLint("PermissionLaunchedDuringComposition") @ExperimentalPermissionsApi @Composable fun FeatureThatRequiresPermission( permissions:MutableLis 阅读全文
posted @ 2022-07-27 09:38 勤奋的小铁 阅读(467) 评论(0) 推荐(0) 编辑
摘要:val decorView: View = window.decorView //侵入系统栏 WindowCompat.setDecorFitsSystemWindows(window,!hide) /**API 28 以上 状态栏位置上被黑条占领 问题解决 **/ if (Build.VERSIO 阅读全文
posted @ 2022-07-21 16:52 勤奋的小铁 阅读(599) 评论(0) 推荐(0) 编辑
摘要:val bottom = remember { mutableStateOf(0f) } ViewCompat.setOnApplyWindowInsetsListener(LocalView.current){ _, insets -> bottom.value = insets?.getInse 阅读全文
posted @ 2022-07-19 11:06 勤奋的小铁 阅读(722) 评论(0) 推荐(0) 编辑
摘要:* rememberCoroutineScope 具体使用请看将 Kotlin 协程与生命周期感知型组件一起使用 例 private val mainScope:CoroutineScope = MainScope() override fun onCreate(savedInstanceState 阅读全文
posted @ 2022-07-11 14:44 勤奋的小铁 阅读(126) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示