Andrews framework components - Overview Android Architecture Components

Google official text documents Address: https://developer.android.google.cn/topic/libraries/architecture

Andrews established framework is a set of libraries: to help you design a robust, testable, maintainable applications. Life cycle and process data using the class as an entry management UI formation of persistence.

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 robust applications put together a look at application architecture guide . Together at The Basics of putting Learn A Robust App with at The Guide to App Architecture .
  • Management life cycle of the application. The new lifecycle perception established technology to help manage the life cycle of Activity and fragment. Holding changing the setting, to avoid memory leaks and easier to load data into UI. Lifecycle apos your App the Manage. New Lifecycle-Aware Components Help Manage you and your Activity Lifecycles the fragment. Survive Configuration Changes, Memory leaks and Avoid INTO Data Load your Easily the UI.
  • Use LiveData create data objects, so that the underlying data changes will be notified when the user interface. The Use LiveData to Build the Data Objects that the when the Notify views at The underlying Database Changes.
  • ViewModel for storing data and user interface in Hong Kong, the relevant data is rotated so that the interface will not be lost. ViewModel Stores the UI that the Data-Related Destroyed IS ON App not in rotations.
  • Room is a SQLite database object map. Use it to avoid boilerplate code, and easily convert SQLite table data as Java objects. Room Providing SQLite checking at compile time statement, and may return RxJava, Flowable and LiveData observable objects. Room IS A the SQLite Object Mapping Library. Avoid boilerplate code to the Use IT and the SQLite Table Easily Convert to the Java Data Objects. Room Time Checks of the Provides the compile statements and the SQLite CAN return RxJava, LiveData Flowable and observables.

Guess you like

Origin www.cnblogs.com/edzjx/p/11621696.html