What are Android Architecture Components?
What are Android Architecture Components?
Android Architecture Components are a collection of libraries that help you design robust, testable, and maintainable apps. They provide an abstraction layer over common Android tasks like lifecycle management, data persistence, and UI state management. The main components are:
ViewModel: Manages UI-related data and survives configuration changes. It is responsible for preparing and managing the data for an Activity or Fragment.
LiveData: An observable data holder that is lifecycle-aware. LiveData only updates app component observers that are in an active lifecycle state.
Room: A SQLite object mapping library that provides an abstraction layer over SQLite to allow fluent database access while harnessing the full power of SQLite.
Đăng nhập để tham gia thảo luận cùng mọi người.
Chưa có bình luận nào
Hãy là người đầu tiên chia sẻ suy nghĩ của bạn.