├── .gradle ├── 4.8.1 │ ├── fileChanges │ │ └── last-build.bin │ └── fileHashes │ │ ├── fileHashes.bin │ │ └── fileHashes.lock ├── 6.7.1 │ ├── executionHistory │ │ ├── executionHistory.bin │ │ └── executionHistory.lock │ ├── fileChanges │ │ └── last-build.bin │ ├── fileHashes │ │ ├── fileHashes.bin │ │ ├── fileHashes.lock │ │ └── resourceHashesCache.bin │ ├── gc.properties │ └── javaCompile │ │ ├── classAnalysis.bin │ │ ├── jarAnalysis.bin │ │ ├── javaCompile.lock │ │ └── taskHistory.bin ├── buildOutputCleanup │ ├── buildOutputCleanup.lock │ ├── cache.properties │ └── outputFiles.bin ├── checksums │ ├── checksums.lock │ ├── md5-checksums.bin │ └── sha1-checksums.bin ├── configuration-cache │ └── gc.properties ├── vcs-1 │ └── gc.properties └── vcsWorkingDirs │ └── gc.properties ├── .idea ├── .gitignore ├── assetWizardSettings.xml ├── compiler.xml ├── encodings.xml ├── gradle.xml ├── jarRepositories.xml ├── libraries │ ├── Gradle__androidx_activity_activity_1_1_0_aar.xml │ ├── Gradle__androidx_activity_activity_ktx_1_1_0_aar.xml │ ├── Gradle__androidx_annotation_annotation_1_2_0.xml │ ├── Gradle__androidx_annotation_annotation_experimental_1_0_0_aar.xml │ ├── Gradle__androidx_appcompat_appcompat_1_2_0_aar.xml │ ├── Gradle__androidx_appcompat_appcompat_resources_1_2_0_aar.xml │ ├── Gradle__androidx_arch_core_core_common_2_1_0.xml │ ├── Gradle__androidx_arch_core_core_runtime_2_1_0_aar.xml │ ├── Gradle__androidx_cardview_cardview_1_0_0_aar.xml │ ├── Gradle__androidx_collection_collection_1_1_0.xml │ ├── Gradle__androidx_collection_collection_ktx_1_1_0.xml │ ├── Gradle__androidx_constraintlayout_constraintlayout_2_0_1_aar.xml │ ├── Gradle__androidx_constraintlayout_constraintlayout_solver_2_0_1.xml │ ├── Gradle__androidx_coordinatorlayout_coordinatorlayout_1_1_0_aar.xml │ ├── Gradle__androidx_core_core_1_6_0_alpha02_aar.xml │ ├── Gradle__androidx_core_core_ktx_1_6_0_alpha02_aar.xml │ ├── Gradle__androidx_cursoradapter_cursoradapter_1_0_0_aar.xml │ ├── Gradle__androidx_customview_customview_1_0_0_aar.xml │ ├── Gradle__androidx_databinding_viewbinding_4_2_1_aar.xml │ ├── Gradle__androidx_documentfile_documentfile_1_0_0_aar.xml │ ├── Gradle__androidx_drawerlayout_drawerlayout_1_0_0_aar.xml │ ├── Gradle__androidx_dynamicanimation_dynamicanimation_1_0_0_aar.xml │ ├── Gradle__androidx_fragment_fragment_1_2_2_aar.xml │ ├── Gradle__androidx_fragment_fragment_ktx_1_2_2_aar.xml │ ├── Gradle__androidx_interpolator_interpolator_1_0_0_aar.xml │ ├── Gradle__androidx_legacy_legacy_support_core_utils_1_0_0_aar.xml │ ├── Gradle__androidx_lifecycle_lifecycle_common_2_2_0.xml │ ├── Gradle__androidx_lifecycle_lifecycle_common_java8_2_0_0_rc01.xml │ ├── Gradle__androidx_lifecycle_lifecycle_extensions_2_2_0_aar.xml │ ├── Gradle__androidx_lifecycle_lifecycle_livedata_2_2_0_aar.xml │ ├── Gradle__androidx_lifecycle_lifecycle_livedata_core_2_2_0_aar.xml │ ├── Gradle__androidx_lifecycle_lifecycle_livedata_core_ktx_2_2_0_aar.xml │ ├── Gradle__androidx_lifecycle_lifecycle_process_2_2_0_aar.xml │ ├── Gradle__androidx_lifecycle_lifecycle_runtime_2_2_0_aar.xml │ ├── Gradle__androidx_lifecycle_lifecycle_runtime_ktx_2_2_0_aar.xml │ ├── Gradle__androidx_lifecycle_lifecycle_service_2_2_0_aar.xml │ ├── Gradle__androidx_lifecycle_lifecycle_viewmodel_2_3_1_aar.xml │ ├── Gradle__androidx_lifecycle_lifecycle_viewmodel_ktx_2_3_1_aar.xml │ ├── Gradle__androidx_lifecycle_lifecycle_viewmodel_savedstate_2_2_0_aar.xml │ ├── Gradle__androidx_loader_loader_1_0_0_aar.xml │ ├── Gradle__androidx_localbroadcastmanager_localbroadcastmanager_1_0_0_aar.xml │ ├── Gradle__androidx_print_print_1_0_0_aar.xml │ ├── Gradle__androidx_recyclerview_recyclerview_1_1_0_aar.xml │ ├── Gradle__androidx_savedstate_savedstate_1_0_0_aar.xml │ ├── Gradle__androidx_test_core_1_2_0_aar.xml │ ├── Gradle__androidx_test_espresso_espresso_core_3_2_0_aar.xml │ ├── Gradle__androidx_test_espresso_espresso_idling_resource_3_2_0_aar.xml │ ├── Gradle__androidx_test_ext_junit_1_1_1_aar.xml │ ├── Gradle__androidx_test_monitor_1_2_0_aar.xml │ ├── Gradle__androidx_test_runner_1_2_0_aar.xml │ ├── Gradle__androidx_transition_transition_1_2_0_aar.xml │ ├── Gradle__androidx_vectordrawable_vectordrawable_1_1_0_aar.xml │ ├── Gradle__androidx_vectordrawable_vectordrawable_animated_1_1_0_aar.xml │ ├── Gradle__androidx_versionedparcelable_versionedparcelable_1_1_1_aar.xml │ ├── Gradle__androidx_viewpager2_viewpager2_1_0_0_aar.xml │ ├── Gradle__androidx_viewpager_viewpager_1_0_0_aar.xml │ ├── Gradle__com_androidplot_androidplot_core_1_5_7_aar.xml │ ├── Gradle__com_github_PhilJay_MPAndroidChart_v3_0_3.xml │ ├── Gradle__com_google_android_material_material_1_3_0_aar.xml │ ├── Gradle__com_google_code_findbugs_jsr305_2_0_1.xml │ ├── Gradle__com_squareup_javawriter_2_1_1.xml │ ├── Gradle__javax_inject_javax_inject_1.xml │ ├── Gradle__junit_junit_4_12.xml │ ├── Gradle__net_sf_kxml_kxml2_2_3_0.xml │ ├── Gradle__org_hamcrest_hamcrest_core_1_3.xml │ ├── Gradle__org_hamcrest_hamcrest_integration_1_3.xml │ ├── Gradle__org_hamcrest_hamcrest_library_1_3.xml │ ├── Gradle__org_jetbrains_annotations_13_0.xml │ ├── Gradle__org_jetbrains_kotlin_kotlin_android_extensions_runtime_1_3_72.xml │ ├── Gradle__org_jetbrains_kotlin_kotlin_stdlib_1_4_32.xml │ ├── Gradle__org_jetbrains_kotlin_kotlin_stdlib_common_1_4_32.xml │ ├── Gradle__org_jetbrains_kotlinx_kotlinx_coroutines_android_1_4_1.xml │ └── Gradle__org_jetbrains_kotlinx_kotlinx_coroutines_core_jvm_1_4_1.xml ├── misc.xml ├── modules.xml ├── modules │ ├── NewAppWidget.iml │ └── app │ │ └── NewAppWidget.app.iml ├── runConfigurations.xml └── vcs.xml ├── LICENSE ├── README.md ├── app ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ ├── androidTest │ └── java │ │ └── com │ │ └── example │ │ └── appwidget │ │ └── ExampleInstrumentedTest.kt │ ├── main │ ├── AndroidManifest.xml │ ├── java │ │ └── com │ │ │ └── example │ │ │ └── appwidget │ │ │ ├── MyApplication.kt │ │ │ ├── activity │ │ │ ├── MainActivity.kt │ │ │ ├── SplashActivity.kt │ │ │ └── WidgetConfigureActivity.kt │ │ │ ├── observer │ │ │ └── MyLifecycleObserver.kt │ │ │ ├── viewmodel │ │ │ └── MyViewModel.kt │ │ │ └── widget │ │ │ ├── CountDownAppWidget.kt │ │ │ ├── MyXYSeries.kt │ │ │ ├── PedometerAppWidget.kt │ │ │ ├── StateListAppWidget.kt │ │ │ └── TodoListAppWidget.kt │ └── res │ │ ├── animator-v22 │ │ └── ic_alarm_animation_button.xml │ │ ├── drawable-v22 │ │ ├── app_widget_pedometer_preview.jpg │ │ ├── app_widget_todolist__preview.jpg │ │ └── ic_tab_alarm_animated.xml │ │ ├── drawable-v24 │ │ ├── ic_launcher_animated_sample.xml │ │ ├── ic_launcher_animated_sample_2.xml │ │ ├── ic_launcher_foreground.xml │ │ ├── ic_launcher_foreground_animated.xml │ │ └── ic_launcher_sample.xml │ │ ├── drawable-xxhdpi │ │ ├── xiaomi_brand.jpg │ │ └── xiaomi_brand_small.jpg │ │ ├── drawable │ │ ├── app_widget_pedometer_preview_1.png │ │ ├── app_widget_pedometer_preview_2.jpg │ │ ├── app_widget_todolist__preview_2.jpg │ │ ├── ic_add.xml │ │ ├── ic_add_24.xml │ │ ├── ic_add_to.xml │ │ ├── ic_alarm.xml │ │ ├── ic_alarm_fab.xml │ │ ├── ic_alarm_small.xml │ │ ├── ic_alarm_tab_static.xml │ │ ├── ic_app_bundle_logo.xml │ │ ├── ic_day.xml │ │ ├── ic_hourglass.xml │ │ ├── ic_icon_movie.xml │ │ ├── ic_icon_movie_adp.xml │ │ ├── ic_icon_movie_adp_animated.xml │ │ ├── ic_icon_movie_adp_latest.xml │ │ ├── ic_icon_movie_adp_latest_animated.xml │ │ ├── ic_icon_movie_animated.xml │ │ ├── ic_icon_movie_mine.xml │ │ ├── ic_icon_movie_mine_animated.xml │ │ ├── ic_im_movie.xml │ │ ├── ic_kotlin_hero.xml │ │ ├── ic_kotlin_hero_animated.xml │ │ ├── ic_kotlin_hero_new.xml │ │ ├── ic_kotlin_hero_new_animated.xml │ │ ├── ic_kotlin_hero_new_animated_rotate.xml │ │ ├── ic_kotlin_hero_new_animated_slide.xml │ │ ├── ic_kotlin_hero_new_animated_total.xml │ │ ├── ic_launcher_background.xml │ │ ├── ic_launcher_round_for_splash.png │ │ ├── ic_mi_logo.xml │ │ ├── ic_movie_logo_animated.xml │ │ ├── ic_splash.xml │ │ ├── ic_splash_bg.PNG │ │ ├── ic_splash_xiaomi.xml │ │ ├── ic_splash_zhihu.xml │ │ ├── ic_tm_brand.png │ │ ├── ic_tm_brand_new.png │ │ ├── ic_tm_brand_newer.png │ │ ├── ic_tm_logo.png │ │ ├── ic_vinyl_dark_grey.xml │ │ ├── ic_walk.xml │ │ ├── ic_zhihu_brand.png │ │ ├── ic_zhihu_logo.jpg │ │ ├── widget_pedometer_chart_tools.jpg │ │ ├── widget_pedometer_chart_tools_2.jpg │ │ ├── widget_pedometer_chart_tools_3.jpg │ │ ├── xiaomi_logo_2021.png │ │ ├── xiaomi_logo_black.jpg │ │ ├── xiaomi_logo_brand.jpeg │ │ ├── xiaomi_logo_new.jpg │ │ ├── xiaomi_logo_white.jpg │ │ └── xiaomi_logo_white_2.jpg │ │ ├── layout │ │ ├── activity_main.xml │ │ ├── activity_splash.xml │ │ ├── activity_temp.xml │ │ ├── activity_widget_configure.xml │ │ ├── item_count_down.xml │ │ ├── widget_count_down_list.xml │ │ ├── widget_pedometer.xml │ │ ├── widget_pedometer_chart.xml │ │ ├── widget_pedometer_info.xml │ │ ├── widget_state_list_title_region.xml │ │ ├── widget_state_view.xml │ │ ├── widget_state_view_preview.xml │ │ ├── widget_todo_list.xml │ │ ├── widget_todo_list_preview.xml │ │ ├── widget_todo_list_title_region.xml │ │ └── widget_todo_list_title_region_preview.xml │ │ ├── mipmap-anydpi-v26 │ │ ├── ic_launcher.xml │ │ └── ic_launcher_round.xml │ │ ├── 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 │ │ └── ic_launcher_round_bg.png │ │ ├── values-night-v31 │ │ └── themes.xml │ │ ├── values-night │ │ └── themes.xml │ │ ├── values-v21 │ │ └── styles.xml │ │ ├── values-v26 │ │ └── styles.xml │ │ ├── values-v31 │ │ ├── styles.xml │ │ └── themes.xml │ │ ├── values │ │ ├── attrs.xml │ │ ├── colors.xml │ │ ├── constants.xml │ │ ├── dimens.xml │ │ ├── strings.xml │ │ ├── styles.xml │ │ └── themes.xml │ │ └── xml │ │ ├── app_widget_count_down_list.xml │ │ ├── app_widget_pedometer.xml │ │ ├── app_widget_state_list.xml │ │ └── app_widget_todo_list.xml │ └── test │ └── java │ └── com │ └── example │ └── appwidget │ └── ExampleUnitTest.kt ├── build.gradle ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── local.properties └── settings.gradle /.gradle/4.8.1/fileChanges/last-build.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gradle/4.8.1/fileHashes/fileHashes.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/.gradle/4.8.1/fileHashes/fileHashes.bin -------------------------------------------------------------------------------- /.gradle/4.8.1/fileHashes/fileHashes.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/.gradle/4.8.1/fileHashes/fileHashes.lock -------------------------------------------------------------------------------- /.gradle/6.7.1/executionHistory/executionHistory.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/.gradle/6.7.1/executionHistory/executionHistory.bin -------------------------------------------------------------------------------- /.gradle/6.7.1/executionHistory/executionHistory.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/.gradle/6.7.1/executionHistory/executionHistory.lock -------------------------------------------------------------------------------- /.gradle/6.7.1/fileChanges/last-build.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gradle/6.7.1/fileHashes/fileHashes.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/.gradle/6.7.1/fileHashes/fileHashes.bin -------------------------------------------------------------------------------- /.gradle/6.7.1/fileHashes/fileHashes.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/.gradle/6.7.1/fileHashes/fileHashes.lock -------------------------------------------------------------------------------- /.gradle/6.7.1/fileHashes/resourceHashesCache.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/.gradle/6.7.1/fileHashes/resourceHashesCache.bin -------------------------------------------------------------------------------- /.gradle/6.7.1/gc.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/.gradle/6.7.1/gc.properties -------------------------------------------------------------------------------- /.gradle/6.7.1/javaCompile/classAnalysis.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/.gradle/6.7.1/javaCompile/classAnalysis.bin -------------------------------------------------------------------------------- /.gradle/6.7.1/javaCompile/jarAnalysis.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/.gradle/6.7.1/javaCompile/jarAnalysis.bin -------------------------------------------------------------------------------- /.gradle/6.7.1/javaCompile/javaCompile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/.gradle/6.7.1/javaCompile/javaCompile.lock -------------------------------------------------------------------------------- /.gradle/6.7.1/javaCompile/taskHistory.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/.gradle/6.7.1/javaCompile/taskHistory.bin -------------------------------------------------------------------------------- /.gradle/buildOutputCleanup/buildOutputCleanup.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/.gradle/buildOutputCleanup/buildOutputCleanup.lock -------------------------------------------------------------------------------- /.gradle/buildOutputCleanup/cache.properties: -------------------------------------------------------------------------------- 1 | #Sun May 23 14:17:02 CST 2021 2 | gradle.version=6.7.1 3 | -------------------------------------------------------------------------------- /.gradle/buildOutputCleanup/outputFiles.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/.gradle/buildOutputCleanup/outputFiles.bin -------------------------------------------------------------------------------- /.gradle/checksums/checksums.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/.gradle/checksums/checksums.lock -------------------------------------------------------------------------------- /.gradle/checksums/md5-checksums.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/.gradle/checksums/md5-checksums.bin -------------------------------------------------------------------------------- /.gradle/checksums/sha1-checksums.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/.gradle/checksums/sha1-checksums.bin -------------------------------------------------------------------------------- /.gradle/configuration-cache/gc.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/.gradle/configuration-cache/gc.properties -------------------------------------------------------------------------------- /.gradle/vcs-1/gc.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/.gradle/vcs-1/gc.properties -------------------------------------------------------------------------------- /.gradle/vcsWorkingDirs/gc.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/.gradle/vcsWorkingDirs/gc.properties -------------------------------------------------------------------------------- /.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | -------------------------------------------------------------------------------- /.idea/assetWizardSettings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 31 | 32 | -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 20 | 21 | -------------------------------------------------------------------------------- /.idea/jarRepositories.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 9 | 10 | 14 | 15 | 19 | 20 | 24 | 25 | 29 | 30 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_activity_activity_1_1_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_activity_activity_ktx_1_1_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_annotation_annotation_1_2_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_annotation_annotation_experimental_1_0_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_appcompat_appcompat_1_2_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_appcompat_appcompat_resources_1_2_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_arch_core_core_common_2_1_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_arch_core_core_runtime_2_1_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_cardview_cardview_1_0_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_collection_collection_1_1_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_collection_collection_ktx_1_1_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_constraintlayout_constraintlayout_2_0_1_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_constraintlayout_constraintlayout_solver_2_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_coordinatorlayout_coordinatorlayout_1_1_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_core_core_1_6_0_alpha02_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_core_core_ktx_1_6_0_alpha02_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_cursoradapter_cursoradapter_1_0_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_customview_customview_1_0_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_databinding_viewbinding_4_2_1_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_documentfile_documentfile_1_0_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_drawerlayout_drawerlayout_1_0_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_dynamicanimation_dynamicanimation_1_0_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_fragment_fragment_1_2_2_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_fragment_fragment_ktx_1_2_2_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_interpolator_interpolator_1_0_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_legacy_legacy_support_core_utils_1_0_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_lifecycle_lifecycle_common_2_2_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_lifecycle_lifecycle_common_java8_2_0_0_rc01.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_lifecycle_lifecycle_extensions_2_2_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_lifecycle_lifecycle_livedata_2_2_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_lifecycle_lifecycle_livedata_core_2_2_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_lifecycle_lifecycle_livedata_core_ktx_2_2_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_lifecycle_lifecycle_process_2_2_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_lifecycle_lifecycle_runtime_2_2_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_lifecycle_lifecycle_runtime_ktx_2_2_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_lifecycle_lifecycle_service_2_2_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_lifecycle_lifecycle_viewmodel_2_3_1_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_lifecycle_lifecycle_viewmodel_ktx_2_3_1_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_lifecycle_lifecycle_viewmodel_savedstate_2_2_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_loader_loader_1_0_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_localbroadcastmanager_localbroadcastmanager_1_0_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_print_print_1_0_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_recyclerview_recyclerview_1_1_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_savedstate_savedstate_1_0_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_test_core_1_2_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_test_espresso_espresso_core_3_2_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_test_espresso_espresso_idling_resource_3_2_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_test_ext_junit_1_1_1_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_test_monitor_1_2_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_test_runner_1_2_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_transition_transition_1_2_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_vectordrawable_vectordrawable_1_1_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_vectordrawable_vectordrawable_animated_1_1_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_versionedparcelable_versionedparcelable_1_1_1_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_viewpager2_viewpager2_1_0_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__androidx_viewpager_viewpager_1_0_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_androidplot_androidplot_core_1_5_7_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_github_PhilJay_MPAndroidChart_v3_0_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_google_android_material_material_1_3_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_google_code_findbugs_jsr305_2_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_squareup_javawriter_2_1_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__javax_inject_javax_inject_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__junit_junit_4_12.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__net_sf_kxml_kxml2_2_3_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__org_hamcrest_hamcrest_core_1_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__org_hamcrest_hamcrest_integration_1_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__org_hamcrest_hamcrest_library_1_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__org_jetbrains_annotations_13_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_android_extensions_runtime_1_3_72.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_1_4_32.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_common_1_4_32.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__org_jetbrains_kotlinx_kotlinx_coroutines_android_1_4_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__org_jetbrains_kotlinx_kotlinx_coroutines_core_jvm_1_4_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 9 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.idea/modules/NewAppWidget.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Ellison Chan 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | apply plugin: 'kotlin-android' 3 | apply plugin: 'kotlin-android-extensions' 4 | 5 | android { 6 | // compileSdkVersion 30 7 | compileSdkVersion "android-S" 8 | buildToolsVersion "30.0.2" 9 | 10 | defaultConfig { 11 | applicationId "com.example.appwidget" 12 | minSdkVersion 24 13 | // targetSdkVersion 30 14 | targetSdkVersion "S" 15 | versionCode 1 16 | versionName "1.0" 17 | 18 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 19 | } 20 | 21 | buildTypes { 22 | release { 23 | minifyEnabled false 24 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' 25 | } 26 | } 27 | 28 | viewBinding { 29 | enabled = true 30 | } 31 | 32 | kotlinOptions { 33 | jvmTarget = "1.8" 34 | } 35 | } 36 | 37 | dependencies { 38 | implementation fileTree(dir: "libs", include: ["*.jar"]) 39 | implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" 40 | implementation 'androidx.appcompat:appcompat:1.1.0' 41 | implementation 'androidx.constraintlayout:constraintlayout:1.1.3' 42 | testImplementation 'junit:junit:4.12' 43 | androidTestImplementation 'androidx.test.ext:junit:1.1.1' 44 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' 45 | 46 | // lifecycle 47 | implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0' 48 | implementation 'androidx.lifecycle:lifecycle-common-java8:2.0.0-rc01' 49 | 50 | // kotlin ktx 51 | implementation 'androidx.core:core-ktx:1.6.0-alpha02' 52 | implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1" 53 | implementation 'androidx.fragment:fragment-ktx:1.2.2' 54 | 55 | // MP Android Chart 56 | implementation 'com.github.PhilJay:MPAndroidChart:v3.0.3' 57 | 58 | // Android Plot 59 | implementation "com.androidplot:androidplot-core:1.5.7" 60 | 61 | // Material 62 | implementation 'com.google.android.material:material:1.3.0' 63 | } -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile -------------------------------------------------------------------------------- /app/src/androidTest/java/com/example/appwidget/ExampleInstrumentedTest.kt: -------------------------------------------------------------------------------- 1 | package com.example.appwidget 2 | 3 | import androidx.test.platform.app.InstrumentationRegistry 4 | import androidx.test.ext.junit.runners.AndroidJUnit4 5 | 6 | import org.junit.Test 7 | import org.junit.runner.RunWith 8 | 9 | import org.junit.Assert.* 10 | 11 | /** 12 | * Instrumented test, which will execute on an Android device. 13 | * 14 | * See [testing documentation](http://d.android.com/tools/testing). 15 | */ 16 | @RunWith(AndroidJUnit4::class) 17 | class ExampleInstrumentedTest { 18 | @Test 19 | fun useAppContext() { 20 | // Context of the app under test. 21 | val appContext = InstrumentationRegistry.getInstrumentation().targetContext 22 | assertEquals("com.example.appwidget", appContext.packageName) 23 | } 24 | } -------------------------------------------------------------------------------- /app/src/main/java/com/example/appwidget/MyApplication.kt: -------------------------------------------------------------------------------- 1 | package com.example.appwidget 2 | 3 | import android.app.Application 4 | 5 | class MyApplication: Application() { 6 | override fun onCreate() { 7 | super.onCreate() 8 | } 9 | } -------------------------------------------------------------------------------- /app/src/main/java/com/example/appwidget/activity/WidgetConfigureActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.appwidget.activity 2 | 3 | import android.appwidget.AppWidgetManager 4 | import android.os.Bundle 5 | import androidx.appcompat.app.AppCompatActivity 6 | import com.example.appwidget.databinding.ActivityWidgetConfigureBinding 7 | 8 | class WidgetConfigureActivity : AppCompatActivity() { 9 | 10 | var appWidgetId = AppWidgetManager.INVALID_APPWIDGET_ID 11 | 12 | public override fun onCreate(icicle: Bundle?) { 13 | super.onCreate(icicle) 14 | 15 | val binding = ActivityWidgetConfigureBinding.inflate(layoutInflater) 16 | setContentView(binding.root) 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/appwidget/observer/MyLifecycleObserver.kt: -------------------------------------------------------------------------------- 1 | package com.example.appwidget.observer 2 | 3 | import android.app.Activity 4 | import android.util.Log 5 | import androidx.lifecycle.Lifecycle 6 | import androidx.lifecycle.LifecycleObserver 7 | import androidx.lifecycle.OnLifecycleEvent 8 | 9 | class MyLifecycleObserver( 10 | private val lifecycle: Lifecycle, 11 | private val activity: Activity 12 | ) : LifecycleObserver { 13 | @OnLifecycleEvent(Lifecycle.Event.ON_CREATE) 14 | fun onCreate() { 15 | Log.d("Splash", "Activity:$activity Activity:$activity onCreate") 16 | } 17 | 18 | @OnLifecycleEvent(Lifecycle.Event.ON_START) 19 | fun onStart() { 20 | Log.d("Splash", "Activity:$activity onStart") 21 | } 22 | 23 | @OnLifecycleEvent(Lifecycle.Event.ON_RESUME) 24 | fun onResume() { 25 | Log.d("Splash", "Activity:$activity onResume") 26 | } 27 | 28 | @OnLifecycleEvent(Lifecycle.Event.ON_PAUSE) 29 | fun onPause() { 30 | Log.d("Splash", "Activity:$activity onPause") 31 | } 32 | 33 | @OnLifecycleEvent(Lifecycle.Event.ON_STOP) 34 | fun onStop() { 35 | Log.d("Splash", "Activity:$activity onStop") 36 | } 37 | 38 | @OnLifecycleEvent(Lifecycle.Event.ON_DESTROY) 39 | fun onDestory() { 40 | Log.d("Splash", "Activity:$activity onDestory") 41 | } 42 | } -------------------------------------------------------------------------------- /app/src/main/java/com/example/appwidget/viewmodel/MyViewModel.kt: -------------------------------------------------------------------------------- 1 | package com.example.appwidget.viewmodel 2 | 3 | import android.app.Application 4 | import android.os.SystemClock 5 | import androidx.lifecycle.AndroidViewModel 6 | 7 | class MyViewModel(application: Application): AndroidViewModel(application) { 8 | companion object { 9 | const val WORK_DURATION = 2000L 10 | } 11 | private val initTime = SystemClock.uptimeMillis() 12 | fun isDataReady() = SystemClock.uptimeMillis() - initTime > WORK_DURATION 13 | } -------------------------------------------------------------------------------- /app/src/main/java/com/example/appwidget/widget/MyXYSeries.kt: -------------------------------------------------------------------------------- 1 | package com.example.appwidget.widget 2 | 3 | import com.androidplot.xy.SimpleXYSeries 4 | 5 | class MyXYSeries(xVals: List?, yVals: List?, title: String?) : 6 | SimpleXYSeries(xVals, yVals, title) { 7 | override fun getTitle(): String { 8 | // Log.d("Widget", "MyXYSeries# getTitle() WITH:", Throwable()) 9 | return super.getTitle() 10 | } 11 | } -------------------------------------------------------------------------------- /app/src/main/java/com/example/appwidget/widget/StateListAppWidget.kt: -------------------------------------------------------------------------------- 1 | package com.example.appwidget.widget 2 | 3 | import android.appwidget.AppWidgetManager 4 | import android.appwidget.AppWidgetProvider 5 | import android.content.Context 6 | import android.util.Log 7 | 8 | class StateListAppWidget : AppWidgetProvider() { 9 | override fun onUpdate( 10 | context: Context, 11 | appWidgetManager: AppWidgetManager, 12 | appWidgetIds: IntArray 13 | ) { 14 | Log.d( 15 | "Widget", 16 | "StateListAppWidget#onUpdate() appWidgetIds:${appWidgetIds.contentToString()}" 17 | ) 18 | } 19 | } -------------------------------------------------------------------------------- /app/src/main/res/animator-v22/ic_alarm_animation_button.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 26 | 32 | 38 | 44 | 50 | 56 | 62 | 68 | 74 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-v22/app_widget_pedometer_preview.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/app/src/main/res/drawable-v22/app_widget_pedometer_preview.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable-v22/app_widget_todolist__preview.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/app/src/main/res/drawable-v22/app_widget_todolist__preview.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable-v22/ic_tab_alarm_animated.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 20 | 23 | 24 | 28 | 29 | 32 | 33 | 36 | 37 | 38 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/ic_launcher_animated_sample.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 9 | 14 | 18 | 19 | 20 | 21 | 22 | * 23 | 24 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/ic_launcher_animated_sample_2.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 10 | 16 | 17 | 18 | 19 | 20 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 15 | 18 | 21 | 22 | 23 | 24 | 30 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/ic_launcher_foreground_animated.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 10 | 11 | 12 | 18 | 21 | 24 | 25 | 26 | 27 | 32 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/ic_launcher_sample.xml: -------------------------------------------------------------------------------- 1 | 6 | 11 | 16 | 20 | 21 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/xiaomi_brand.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/app/src/main/res/drawable-xxhdpi/xiaomi_brand.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/xiaomi_brand_small.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/app/src/main/res/drawable-xxhdpi/xiaomi_brand_small.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/app_widget_pedometer_preview_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/app/src/main/res/drawable/app_widget_pedometer_preview_1.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/app_widget_pedometer_preview_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/app/src/main/res/drawable/app_widget_pedometer_preview_2.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/app_widget_todolist__preview_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/app/src/main/res/drawable/app_widget_todolist__preview_2.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_add.xml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_add_24.xml: -------------------------------------------------------------------------------- 1 | 16 | 22 | 25 | 26 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_add_to.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_alarm_fab.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 22 | 25 | 28 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_alarm_small.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 22 | 25 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_alarm_tab_static.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 23 | 26 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_day.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 12 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_hourglass.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 12 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_icon_movie.xml: -------------------------------------------------------------------------------- 1 | 7 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_icon_movie_adp.xml: -------------------------------------------------------------------------------- 1 | 6 | 14 | 15 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_icon_movie_adp_animated.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 10 | 15 | 23 | 24 | 25 | 26 | 27 | 28 | * 29 | 30 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_icon_movie_adp_latest.xml: -------------------------------------------------------------------------------- 1 | 6 | 14 | 15 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_icon_movie_animated.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 9 | 14 | 18 | 19 | 20 | 21 | 22 | * 23 | 24 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_icon_movie_mine.xml: -------------------------------------------------------------------------------- 1 | 6 | 15 | 23 | 24 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_icon_movie_mine_animated.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 10 | 19 | 24 | 32 | 33 | 34 | 35 | 36 | 37 | * 38 | 39 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_im_movie.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_launcher_round_for_splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/app/src/main/res/drawable/ic_launcher_round_for_splash.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_mi_logo.xml: -------------------------------------------------------------------------------- 1 | 6 | 12 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_movie_logo_animated.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 9 | 14 | 18 | 19 | 20 | 21 | 22 | * 23 | 24 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_splash.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 17 | 19 | 20 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_splash_bg.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/app/src/main/res/drawable/ic_splash_bg.PNG -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_splash_xiaomi.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 20 | 23 | 24 | 25 | 30 | 32 | 33 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_splash_zhihu.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 11 | 12 | 13 | 14 | 18 | 20 | 21 | 22 | 27 | 29 | 30 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_tm_brand.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/app/src/main/res/drawable/ic_tm_brand.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_tm_brand_new.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/app/src/main/res/drawable/ic_tm_brand_new.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_tm_brand_newer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/app/src/main/res/drawable/ic_tm_brand_newer.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_tm_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/app/src/main/res/drawable/ic_tm_logo.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_walk.xml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_zhihu_brand.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/app/src/main/res/drawable/ic_zhihu_brand.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_zhihu_logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/app/src/main/res/drawable/ic_zhihu_logo.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/widget_pedometer_chart_tools.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/app/src/main/res/drawable/widget_pedometer_chart_tools.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/widget_pedometer_chart_tools_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/app/src/main/res/drawable/widget_pedometer_chart_tools_2.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/widget_pedometer_chart_tools_3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/app/src/main/res/drawable/widget_pedometer_chart_tools_3.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/xiaomi_logo_2021.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/app/src/main/res/drawable/xiaomi_logo_2021.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/xiaomi_logo_black.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/app/src/main/res/drawable/xiaomi_logo_black.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/xiaomi_logo_brand.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/app/src/main/res/drawable/xiaomi_logo_brand.jpeg -------------------------------------------------------------------------------- /app/src/main/res/drawable/xiaomi_logo_new.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/app/src/main/res/drawable/xiaomi_logo_new.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/xiaomi_logo_white.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/app/src/main/res/drawable/xiaomi_logo_white.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/xiaomi_logo_white_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/app/src/main/res/drawable/xiaomi_logo_white_2.jpg -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 20 | 21 | 32 | 33 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_splash.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 |