美文网首页Android Weekly Notes
Android Weekly Notes #461

Android Weekly Notes #461

作者: 圣骑士wind | 来源:发表于2021-06-14 16:22 被阅读0次

    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

    Videos

    相关文章

      网友评论

        本文标题:Android Weekly Notes #461

        本文链接:https://www.haomeiwen.com/subject/rdroeltx.html