Android Weekly Notes #468
2021-07-18 本文已影响0人
圣骑士wind
Android Weekly Issue #468
Exploring Android 12: Splash Screen
Android 12还有Splash Screen的API.
Compose - List / Detail: Basics - Styling Android
List/Detail的界面, 用了DSL的方式让代码更加简洁.
Implementing a Stopwatch with Kotlin Coroutines and Flow Part 1
Stopwatch的实现, 居然还有测试.
Cartographing Jetpack Compose: foundation
作者还会对Compose上的写写画画开个专栏:
https://dev.to/tkuenneth/series/10525
Custom Weekly Schedule Layout with Jetpack Compose - Part 1
周计划表UI的Compose实现.
Understanding Unit Tests for Android in 2021
测试的不同等级.
包括了单元测试, UI测试, 依赖注入等内容.
具体的实例:
https://github.com/ChristopherME/movies-android
Limit the Availability of Kotlin Extension Functions by using Generics and an Empty Interface
通过泛型和空接口限制扩展方法的使用.
fun <T> T.cruiseTheBoulevard(): String where T: Vehicle, T: LandVehicle {
return "cruising the boulevard with my $make $model"
}
Introduction to the Compose Snapshot system
讨论Compose的Snapshot State, 没太看懂.
A historical introduction to the Compose reactive state model
与上文同一个作者的一篇文章.