谷歌官文文档地址:https://developer.android.google.cn/topic/libraries/architecture

安卓构架组建是库的集合:帮助你设计健壮的、易测试的、可维护的应用。使用类作为入口管理UI组建的生命周期和处理数据持久化。

Android architecture components are a collection of libraries that help you design robust, testable, and maintainable apps. Start with classes for managing your UI component lifecycle and handling data persistence.

  • 了解将健壮的应用放在一起的基础知识请看应用构架指南。Learn the basics of putting together a robust app with theGuide to app architecture.
  • 管理应用的生命周期。新的生命周期感知组建技术帮助管理Activity和fragment的生命周期。保持设置的改变、避免内存泄漏并且更容易的将数据载入UI。Manage your app's lifecycle. New lifecycle-aware componentshelp you manage your activity and fragment lifecycles. Survive configuration changes, avoid memory leaks and easily load data into your UI.
  • 使用LiveData创建数据对象,这样底层数据更改时会通知用户界面。 Use LiveData to build data objects that notify views when the underlying database changes.
  • ViewModel用于保存和用户界面香港的数据,这样界面旋转时相关的数据不会被丢失。 ViewModel stores UI-related data that isn't destroyed on app rotations.
  • Room是一个SQLite对象映射库。使用它来避免样板代码,并轻松地将SQLite表数据转换为Java对象。 Room提供了SQLite语句的编译时检查,并且可以返回RxJava,Flowable和LiveData可观察对象。 Room is a SQLite object mapping library. Use it to avoid boilerplate code and easily convert SQLite table data to Java objects. Room provides compile time checks of SQLite statements and can return RxJava, Flowable and LiveData observables.

最新文章

  1. keepalived+nginx配置文件及检查nginx服务的脚本
  2. 【BZOJ 4636】蒟蒻的数列
  3. Xcode设置
  4. Android学习笔记(三)
  5. UISlider控件属性及方法(转)
  6. 管理工具MongoVUE使用
  7. Intent传递数据从一个Activity到另一个Activity
  8. Machine Learning for hackers读书笔记_一句很重要的话
  9. Hibernate逍遥游记-第4章映射对象标识符-increment、identity、hilo、native、assigned、sequence、<meta>
  10. Android:实现一种浮动选择菜单的效果
  11. DOS批处理命令-注释
  12. careercup-树与图 4.8
  13. web站点优化之使用tengine搭建静态资源服务器,静态资源合并加载案例剖析
  14. Instrumentation接口详解
  15. MYSQL连不上
  16. bootstrap-treeview初使用
  17. selenium之安装和登陆操作举例
  18. luogu P2502 [HAOI2006]旅行
  19. Cisco HSRP热备份路由器协议配置
  20. 微信小程序看上去很美

热门文章

  1. Promise.all 的原理
  2. thinkphp 项目不能直接域名访问 而要加index.php 才能访问
  3. python的次方操作
  4. iOS---如何截图,如何将图片保存到相册
  5. JVM虚拟机运行机制
  6. 【CF1243B1】Character Swap (Easy Version)【思维】
  7. 表单input中disabled提交后得不到值的解决办法
  8. mybatis获取数据库自增id
  9. 写一个简单易用可扩展vue表单验证插件(vue-validate-easy)
  10. Android O编译前修改文件和目录权限