Android Weekly Notes #457

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

  • https://github.com/cortinico/ktfmt-gradle format的插件, 可以放在hook里.
  • https://github.com/naman14/adb-tools-mac
  • https://github.com/Zhuinden/simple-stack-compose-integration/

你可能感兴趣的:(Android Weekly Notes #457)