240 发简信
IP属地:黑龙江
  • Lazy与Delegated Property

    https://kotlinlang.org/docs/delegated-properties.html[https://kotlinlang...

  • C++隐式内联函数

    把函数的定义跟类定义一起写在头文件中,就是隐式的内联函数:https://harttle.land/2015/08/28/effective-c...

  • 怎样在Android Studio里面调试native代码

    生成debug build aar, so必须包含符号。 在gradle文件中,buildTypes config下添加doNotStrip: ...

  • Resize,w 360,h 240
  • lamda in Kotlin

    Kotlin中,lamda只有一个参数时,可以用默认参数名称it代替命名参数。所以下面两种方式的代码,含义是一样的: ComponentActi...

  • Lifecycle/ViewModel

    ViewModelScope.launch启动的协程是运行在主线程的。 ComponentActivity会用Lifecycle注册生命周期事件...

  • Windows的subsystem for Linux下访问其它文件

    在/mnt目录下,可以看到C/D/E等分区。

  • Dispatchers

    默认有4个: Dispatchers.Default[https://kotlin.github.io/kotlinx.coroutines/k...

  • launch, runBlocking, withContext, async

    launch: 非阻塞的,launch会创建一个CoroutineContext,但是内部会直接执行。runBlocking: 阻塞的,runB...