
Android Architecture Component
文章平均质量分 93
JohnnyDeng94
行成于思,毁于随。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Android Jetpack Compose介绍
如果需要更复杂的动画,可以使用。原创 2025-03-20 20:09:24 · 1534 阅读 · 0 评论 -
Android Architecture Components(六)Room源码分析
写在前面官方文档镇楼首先先摘选官方文档上的讲解,之后针对Room涉及的注解进行阅读分析。使用 Room 将数据保存到本地数据库Room 在 SQLite 上提供了一个抽象层,以便在充分利用 SQLite 的强大功能的同时,能够流畅地访问数据库。处理大量结构化数据的应用可极大地受益于在本地保留这些数据。最常见的用例是缓存相关数据。这样,当设备无法访问网络时,用户仍可在离线状态下浏览相应...原创 2020-03-15 18:17:03 · 1113 阅读 · 0 评论 -
Android Architecture Components(五)Paging源码分析
写在前面本文分三部分进行解读:首先是官方文档的摘录,介绍Paging库的作用以及使用方式,第二部分会给出一个实例来介绍Paging库的用法,第三部分结合项目对源码进行阅读分析。官方文档The Paging Library helps you load and display small chunks of data at a time. Loading partial data on de...原创 2020-03-09 20:20:15 · 552 阅读 · 0 评论 -
Android Architecture Components(一)Lifecycle源码分析
Lifecycle简介我们先来看一下官方网站给出的定义: Lifecycle-aware components perform actions in response to a change in the lifecycle status of another component, such as activities and fragments. These components h...原创 2018-07-20 16:33:46 · 644 阅读 · 1 评论 -
Android Architecture Components(二)LiveData分析
LiveData简介我们先来看一下官方网站给出的定义:LiveData is an observable data holder class. Unlike a regular observable, LiveData is lifecycle-aware, meaning it respects the lifecycle of other app components, such as ...原创 2018-12-26 21:27:02 · 222 阅读 · 0 评论 -
Android Architecture Components(三)ViewModel分析
ViewModel简介与上一篇文章相同,先官方文档翻译,再源码分析~我们先看一下官方文档的介绍:The ViewModel class is designed to store and manage UI-related data in a lifecycle conscious way. The ViewModel class allows data to survive configu...原创 2019-01-02 21:26:19 · 498 阅读 · 0 评论 -
Android Architecture Components(四)DataBinding
DataBinding简介官方文档The Data Binding Library is a support library that allows you to bind UI components in your layouts to data sources in your app using a declarative format rather than programmatica...原创 2019-02-05 17:35:23 · 689 阅读 · 0 评论