美文网首页
Android Weekly Notes #457

Android Weekly Notes #457

作者: 圣骑士wind | 来源:发表于2021-05-04 00:57 被阅读0次

    Android Weekly Issue #457

    Jetpack Compose: First Impressions and Learning Resources

    Jetpack Compose的第一印象和学习资源.

    优势, 劣势分析.

    一个有用的包围快捷键:
    Alt + Cmd + J:
    然后: R, C或者W, 对应row, column或者任意widget.

    Compose API Guidelines

    Compose API的guidelines.

    Building a Scroll-to-fade TopBar in Jetpack Compose

    用Jetpack Compose搭建一个滚动消失的Top Bar.

    Better handling states between ViewModel and Composable

    关于使用LiveData还是StateFlow的另一个讨论的文章:
    https://johnoreilly.dev/posts/jetpack-compose-stateflow-livedata/

    Misnomers, Mistakes and Misunderstandings to watch for when learning Kotlin Coroutines and Flow

    一些使用协程和Flow时候的误区.

    • 有些方法应该用suspend就够了, 不需要返回Flow.
    • suspend方法不要回调.
    • 不要使用GlobalScope.
    • 不要在没有必要的情况下, 防御性地切换dispatchers.

    Free Up System Resources For Faster Gradle Builds

    加快gradle build.

    Remembering the State in Jetpack Compose

    Jetpack Compose的状态值.

    Simplified navigation between Composables

    Composable之间的导航.

    开源库: https://github.com/Zhuinden/simple-stack-compose-integration

    Code

    相关文章

      网友评论

          本文标题:Android Weekly Notes #457

          本文链接:https://www.haomeiwen.com/subject/jeaqdltx.html