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

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容