Is Android Jetpack important? There is so much to learn

Jetpack is easy to understand

In 2018, Google I/O released a series of practical tools to assist Android developers, collectively called Jetpack, to help developers build excellent Android applications.

Official JetPack introduction

In general, JetPack is a collection of libraries launched by Google. It is a part other than the Android basic support library SDK. It includes components, tools, architectural solutions, etc... Developers can choose which specific library to access as needed.

Goole IO 2017: Google began to launch Architecture Component, ORM library Room, and ViewModel/ListData for user life cycle management.

Goole IO 2018: Renamed Support lib to androidx, Google has put together many correct solutions to efficiently develop Android APPs.

All of the above are now collectively referred to as JetPack. Its core starting point is to help developers quickly build APPs that are stable, high-performance, test-friendly and backward-compatible.

Advantages of using Jetpack:

1) Speed ​​up development

2) Eliminate boilerplate code

3) Compile high-quality applications with powerful functions

Composition of Jetpack

Android Jetpack components cover the following 4 aspects:

  • Foundation (basic component)
  • Architecture
  • Behavior (behavior component)
  • UI (interface component)

Why learn Jetpack?

Jetpack is a new architectural approach. From work to now, it has experienced MVC, MVP, MVVM, Clean, etc. Due to different project characteristics and needs, each project will have a set of architectural patterns designed by developers. Layered, componentized, modular, each design is based on the project scenario, and it is difficult to fit all project scenarios.

But Jetpack, it is a set of components, tools and guidance; it is a complete set of components officially launched by Google for building APP development.

For products, we will encounter many problems during development, such as: product interaction, user experience, code structure, data acquisition, data storage, network optimization, task scheduling, etc. Many problems do not yet have good solutions and optimization solutions. Jetpack is the official processing method given by Google.

What Jetpack learns include these

1、Lifecycle

2、ViewModel

3、DataBinding

5、LiveData

For recommended information, please refer to "Android Jetpack"

Guess you like

Origin blog.csdn.net/m0_70748845/article/details/134018537