Jetpack overview
Let's introduce it first Jetpack
, this is its official website Jetpack official website .
Jetpack is a set of libraries, tools and guides to help developers write quality applications more easily. These components can help you follow best practices, free you from writing boilerplate code, and simplify complex tasks so you can focus on the code you need.
Jetpack includes the androidx. * Package library that is unbundled from the platform API. This means that it can provide backward compatibility and is updated more frequently than the Android platform to ensure that you can always get the latest and best Jetpack component version.
Jetpack
There are four 基础
parts, 架构
, 行为
, ,页面
Foundation
- AppCompat (backward compatibility)
- Android KTX (write more concise Kotlin code)
- Multidex (multi-processing dex problem)
- Auto (Auto component)
- Test
- Television (TV)
- Wear OS by Google (wearing device)
Architecture Compinents
- Data Bingding
- Room (database)
- WorkManager (Background Task Manager)
- Lifecycle
- Navigation
- Paging
- LiveData (underlying data notification change view)
- ViewModel (manage interface related data in a life-cycle-oriented manner)
Behavior
- Download manager (download to manager)
- Media & playback
- Notifications
- Permissions
- Preferences
- Sharing
- Slices
UI (visual interaction)
- Animation & transitions
- Emoji (tag)
- Fragment (Fragment)
- Layout
- Palette
JetPack
Benefits of use
- 1. Eliminate a lot of repetitive boilerplate code.
- 2. Simplify complex tasks.
- 3. Provides robust backward compatibility capabilities.
- 4. Speed up the development process of Android.
Our next step is to use a Jetpack
full set of components to develop a short video application, during which we will also introduce the use and principle of a component