ICode9

精准搜索请尝试: 精确搜索
  • Android Kotlin Coroutines ktx扩展2022-01-11 20:03:41

    本篇文章主要讲的是,kotlin 协程在 ktx 上的扩展 lifecycle 扩展 对于 lifecycle 的扩展,已经在 以前的文章中讲过了 主要的依赖 implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.2.0" viewModel 扩展 对于 viewModel 的扩展,已经在 以前的文章中讲过了 主要的依赖 imp

  • android_基础_ktx之获取fragment(show方案)2021-12-23 12:01:49

    转载自:https://www.jianshu.com/p/3490ec0eed34 android ktx之获取fragment(show方案) inline fun <reified T : Fragment> FragmentActivity.showFragment(replaceViewId: Int) : T{ val sfm = supportFragmentManager val transaction = sfm.beginTransaction()

  • ViewMode的使用(五)-全局ViewModel2021-12-10 20:30:01

    文章目录 一、前言二、代码定义三、参考源码位置四、参考链接 一、前言 官方提供了供Activity和Fragment使用的ViewModel,但是并没有提供全局的ViewModel。所以如果我们在进行Activity跳转的时候,并不能保持数据使用同一份。所以这里需要对系统的ViewModel进行拓展。这里结

  • 在安卓kotlin中使用Navigation2021-07-08 09:57:31

    Step 1 Add navigation components to the project At the top of the project-level build.gradle file, along with the other ext variables, add a variable for the navigationVersion. To find the latest navigation version number, see Declaring dependencies in t

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有