美文网首页Android开发成长
Android Weekly Notes #413

Android Weekly Notes #413

作者: 圣骑士wind | 来源:发表于2020-05-11 13:50 被阅读0次

Android Weekly Issue #413

Restore RecyclerView scroll position

恢复RecyclerView的滚动位置.
要确保第一次layout的时候, adapter已经有数据了.

从版本1.2.0-alpha02开始, Adapter加了一个新方法.

枚举: StateRestorationPolicy.

可以设置成adapter.stateRestorationPolicy = PREVENT_WHEN_EMPTY, 这样数据为空时不会把保存的位置搞乱.

Kotlin Flow benefits over RxJava

Kotlin的Flow比RxJava好在哪里.

Handling network HTTP response of success data and failure

一个叫三明治的轻量网络库: https://github.com/skydoves/sandwich

代码:

一个MVVM的天气应用: https://github.com/mayokunthefirst/Instant-Weather

COVID 19 应用:
https://github.com/nhsx/COVID-19-app-Android-BETA

一个WebView的替代品: https://mozilla.github.io/geckoview/

Videos

Kotlin的免费课程: https://caster.io/courses/kotlin-programming-language

如何学新东西:
How To Stay Up To Date As A Mobile Developer?

  • 没有必要全学.
  • 知道, 用得上再深入.
  • 学点有趣的.
  • Junior和Senior的开发者有啥区别.

相关文章

网友评论

    本文标题:Android Weekly Notes #413

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