Android Weekly Issue #461
Coordinating multiple view visibility with Flow and the combine operator
复杂的UI状态, 通过在ViewModel里combine flow来完成.
Improving Android DataBinding with Bindables library
用这个库: https://github.com/skydoves/bindables 来进一步改善data binding的使用.
Scheduling Tasks With Android WorkManager
WorkManager的使用和测试.
Noisy Code With Kotlin Scopes
kotlin的几个scope方法, 可能会导致可读性降低.
remember { mutableStateOf() } – A cheat sheet
Compose代码中的:
var text by remember { mutableStateOf("") }
-
by
是Kotlin的delegated property. -
remember
在recompositions中保持一个值不变. (persists across recompositions). -
mutableStateOf
返回一个MutableState
.
Libraries & Code
- https://github.com/skydoves/bindables DataBinding的辅助类.
- https://github.com/arkivanov/composnake Compose Desktop做的贪吃蛇.
- https://github.com/slackhq/EitherNet Retrofit的返回类型包装.
- https://github.com/SerjantArbuz/Scriptum 一个笔记本应用
Videos
- Android Runtime - How Dalvik and ART work?
- Talking Kotlin: MVIKotlin and Decompose with Arkadii Ivanov from Bumble
- Android Budapest Reactive State Management with Jetpack • Gábor Váradi