├── app ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── layout │ │ │ │ ├── item_layout.xml │ │ │ │ ├── fragment_lifecycle.xml │ │ │ │ ├── fragment_two.xml │ │ │ │ ├── fragment_one.xml │ │ │ │ ├── cheese_item.xml │ │ │ │ ├── activity_view_model.xml │ │ │ │ ├── activity_lifecycle.xml │ │ │ │ ├── activity_work_manager.xml │ │ │ │ ├── activity_natigation.xml │ │ │ │ ├── activity_live_data.xml │ │ │ │ ├── activity_room.xml │ │ │ │ ├── fragment_main_page1.xml │ │ │ │ ├── activity_paging.xml │ │ │ │ ├── activity_main.xml │ │ │ │ ├── fragment_main_page3.xml │ │ │ │ └── fragment_main_page2.xml │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── colors.xml │ │ │ │ └── styles.xml │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ ├── ic_launcher.xml │ │ │ │ └── ic_launcher_round.xml │ │ │ ├── anim │ │ │ │ ├── slide_left_in.xml │ │ │ │ ├── slide_right_in.xml │ │ │ │ ├── slide_left_out.xml │ │ │ │ └── slide_right_out.xml │ │ │ ├── drawable-v24 │ │ │ │ └── ic_launcher_foreground.xml │ │ │ ├── navigation │ │ │ │ └── nav_graph_main.xml │ │ │ └── drawable │ │ │ │ └── ic_launcher_background.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── lilingzhi │ │ │ │ └── llvr │ │ │ │ ├── db │ │ │ │ ├── TestDataBase.java │ │ │ │ └── TestDao.java │ │ │ │ ├── NavigationActivity.kt │ │ │ │ ├── bean │ │ │ │ ├── TestBean.java │ │ │ │ └── MyViewModel.java │ │ │ │ ├── workmanager │ │ │ │ ├── TestWorker.java │ │ │ │ └── BWorker.java │ │ │ │ ├── ViewModelActivity.java │ │ │ │ ├── fragment │ │ │ │ ├── MainPage3Fragment.kt │ │ │ │ ├── MainPage1Fragment.kt │ │ │ │ ├── MainPage2Fragment.kt │ │ │ │ ├── OneFragment.java │ │ │ │ ├── TwoFragment.java │ │ │ │ └── LifecycleFragment.java │ │ │ │ ├── paging │ │ │ │ ├── Cheese.kt │ │ │ │ ├── Executors.kt │ │ │ │ ├── CheeseDao.kt │ │ │ │ ├── CheeseViewHolder.kt │ │ │ │ ├── CheeseViewModel.kt │ │ │ │ ├── CheeseAdapter.kt │ │ │ │ └── CheeseDb.kt │ │ │ │ ├── LiveDataActivity.java │ │ │ │ ├── LifecycleActivity.java │ │ │ │ ├── MainActivity.java │ │ │ │ ├── PagingActivity.kt │ │ │ │ ├── WorkManagerActivity.java │ │ │ │ └── RoomActivity.java │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── example │ │ │ └── lilingzhi │ │ │ └── llvr │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── example │ │ └── lilingzhi │ │ └── llvr │ │ └── ExampleInstrumentedTest.java ├── proguard-rules.pro ├── build.gradle └── app.iml └── README.md /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/979451341/SixOfficialArchitectureComponents/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/979451341/SixOfficialArchitectureComponents/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/979451341/SixOfficialArchitectureComponents/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/979451341/SixOfficialArchitectureComponents/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/979451341/SixOfficialArchitectureComponents/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/979451341/SixOfficialArchitectureComponents/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/979451341/SixOfficialArchitectureComponents/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/979451341/SixOfficialArchitectureComponents/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/979451341/SixOfficialArchitectureComponents/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/979451341/SixOfficialArchitectureComponents/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/layout/item_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | LLVR 3 | 4 | 5 | Hello blank fragment 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # SixOfficialArchitectureComponents 2 | Android Jetpack 六大架构组件全面了解 3 | https://jianpanwuzhe.blog.csdn.net/article/details/81185356 4 | 5 | ![Image text](https://img-blog.csdn.net/2018072415254936?watermark/2/text/aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3o5Nzk0NTEzNDE=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70) 6 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/anim/slide_left_in.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/anim/slide_right_in.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/anim/slide_left_out.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/anim/slide_right_out.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/lilingzhi/llvr/db/TestDataBase.java: -------------------------------------------------------------------------------- 1 | package com.example.lilingzhi.llvr.db; 2 | 3 | import android.arch.persistence.room.Database; 4 | import android.arch.persistence.room.RoomDatabase; 5 | 6 | import com.example.lilingzhi.llvr.bean.TestBean; 7 | 8 | @Database(entities = {TestBean.class},version = 1) 9 | public abstract class TestDataBase extends RoomDatabase{ 10 | 11 | public abstract TestDao testDao(); 12 | 13 | 14 | } 15 | -------------------------------------------------------------------------------- /app/src/test/java/com/example/lilingzhi/llvr/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.example.lilingzhi.llvr; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_lifecycle.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 11 | 12 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_two.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 13 | 14 |