Android Weekly Notes #468

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

与上文同一个作者的一篇文章.

Code

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

推荐阅读更多精彩内容