# JetpackDemo **Repository Path**: geniuschinahn/JetpackDemo ## Basic Information - **Project Name**: JetpackDemo - **Description**: https://github.com/ellisonchan/JetpackDemo - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-01-13 - **Last Updated**: 2025-01-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ![Jetpack](https://ftp.bmp.ovh/imgs/2021/03/96727cce03a1f57f.jpg) > Site: # JetpackDemo Demo that used to show how to use [Jetpack](https://developer.android.google.cn/jetpack?hl=zh-cn) libraries. | Library | Index | | :--------- | :--: | | [NewCameraX](https://developer.android.google.cn/training/camerax?hl=zh-cn) | [Show how to scan QRCode by **CameraX** api and Huawei `Scankit` or Google `Zxing` library.](https://github.com/ellisonchan/JetpackDemo/tree/main/app/src/main/java/com/ellison/jetpackdemo/cameraX/NewCameraXActivity.kt) | | [Hilt](https://developer.android.google.cn/training/dependency-injection/hilt-jetpack?hl=zh-cn) | [Show DI case with perfect **Hilt** annotation.](https://github.com/ellisonchan/JetpackDemo/tree/main/app/src/main/java/com/ellison/jetpackdemo/hilt) | | [Dagger2](https://github.com/google/dagger) | [Show DI case with **Dagger2** annotation.](https://github.com/ellisonchan/Dagger2Demo) | | [Compose](https://developer.android.com/jetpack/compose) | [Show how to use **Compose** UI library.](https://github.com/ellisonchan/ComposeMovie) | | [Room](https://developer.android.google.cn/training/data-storage/room?hl=zh-cn) | [Show how to use **Room** API.](https://github.com/ellisonchan/JetpackDemo/tree/main/app/src/main/java/com/ellison/jetpackdemo/room) | | [CameraX](https://developer.android.google.cn/training/camerax?hl=zh-cn) | [Show how to use **CameraX** api, such as preview, image capture and video recording.](https://github.com/ellisonchan/JetpackDemo/tree/main/app/src/main/java/com/ellison/jetpackdemo/cameraX) | | [AppCompat](https://developer.android.google.cn/jetpack/androidx/releases/appcompat?hl=zh-cn) | [Show DynamicTint and AutoSize feature with **AppCompat** API.](https://github.com/ellisonchan/JetpackDemo/tree/main/app/src/main/java/com/ellison/jetpackdemo/appCompat) | | [Viewbinding](https://developer.android.google.cn/topic/libraries/view-binding?hl=zh-cn) | [Show **Viewbinding** use case.](https://github.com/ellisonchan/JetpackDemo/tree/main/app/src/main/java/com/ellison/jetpackdemo/viewBinding) | | [Databinding](https://developer.android.google.cn/topic/libraries/data-binding?hl=zh-cn) | [Show **Databinding** use case.](https://github.com/ellisonchan/JetpackDemo/tree/main/app/src/main/java/com/ellison/jetpackdemo/databinding) | | [ViewModel](https://developer.android.google.cn/topic/libraries/architecture/viewmodel) | [Show **ViewModel** use case.](https://github.com/ellisonchan/JetpackDemo/tree/main/app/src/main/java/com/ellison/jetpackdemo/viewModel) | | [ViewModel x DataBinding](https://developer.android.google.cn/topic/libraries/architecture/viewmodel) | [Show how to use **ViewModel** and **DataBinding**.](https://github.com/ellisonchan/JetpackDemo/tree/main/app/src/main/java/com/ellison/jetpackdemo/viewModelBinding) | | [Lifecycle](https://developer.android.google.cn/topic/libraries/architecture/lifecycle?hl=zh-cn) | [Show **Lifecycle** test code.](https://github.com/ellisonchan/JetpackDemo/tree/main/app/src/main/java/com/ellison/jetpackdemo/lifecycle) | | [LiveData](https://developer.android.google.cn/topic/libraries/architecture/livedata?hl=zh-cn) | [Show **LiveData** test code.](https://github.com/ellisonchan/JetpackDemo/tree/main/app/src/main/java/com/ellison/jetpackdemo/liveData) | | [DataStore](https://developer.android.google.cn/topic/libraries/architecture/datastore?hl=zh_cn) | Todo | | [SavingStates](https://developer.android.google.cn/topic/libraries/architecture/saving-states?hl=zh-cn) | Todo | | [StartUp](https://developer.android.google.cn/topic/libraries/app-startup?hl=zh_cn) | Todo | | [Paging](https://developer.android.google.cn/topic/libraries/architecture/paging?hl=zh-cn) | Todo | | [ActivityResult](https://developer.android.google.cn/reference/androidx/activity/result/ActivityResult?hl=zh-cn) | Todo | | [Navigation](https://developer.android.google.cn/guide/navigation?hl=zh-cn) | Todo | | [WorkManager](https://developer.android.google.cn/topic/libraries/architecture/workmanager/basics?hl=zh_cn) | Todo | ## :camera_flash: [NewCameraX](https://github.com/ellisonchan/JetpackDemo/tree/main/app/src/main/java/com/ellison/jetpackdemo/cameraX/NewCameraXActivity.kt) 12-widget ### Select analysis service ![](https://z3.ax1x.com/2021/06/27/RJNuGT.png) ### Scan QRCode by Huawei ScanKit ![](https://z3.ax1x.com/2021/06/27/RJNhQg.gif) ### Auto zoom when long distance ![](https://z3.ax1x.com/2021/06/27/RJUiY6.gif) ### Show point view when scan succeed ![](https://z3.ax1x.com/2021/06/27/RJUV6e.gif) ## :fork_and_knife: [Hilt](https://github.com/ellisonchan/JetpackDemo/tree/main/app/src/main/java/com/ellison/jetpackdemo/hilt) Hilt Demo ## 🔪 [Dagger2](https://github.com/ellisonchan/Dagger2Demo) Dagger2 Demo ## :art: [Compose](https://github.com/ellisonchan/ComposeMovie) Compose Demo Compose Demo ## :house: [Room](https://github.com/ellisonchan/JetpackDemo/tree/main/app/src/main/java/com/ellison/jetpackdemo/room) Room Demo ## :camera_flash: [CameraX](https://github.com/ellisonchan/JetpackDemo/tree/main/app/src/main/java/com/ellison/jetpackdemo/cameraX) 12-widget ## :wrench: [AppCompat](https://github.com/ellisonchan/JetpackDemo/tree/main/app/src/main/java/com/ellison/jetpackdemo/appCompat) DynamicTint & AutoSize ## :orange_book: My blog ## license ``` MIT License Copyright (c) 2021 Ellison Chan Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ```