├── .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 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
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 |
8 |
9 |
--------------------------------------------------------------------------------
/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/.idea/modules/NewAppWidget.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/.idea/runConfigurations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
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 |
21 |
22 |
32 |
33 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_temp.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
21 |
22 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_widget_configure.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
15 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/item_count_down.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
12 |
13 |
21 |
22 |
31 |
32 |
39 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/widget_count_down_list.xml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
15 |
16 |
25 |
26 |
35 |
36 |
37 |
45 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/widget_pedometer.xml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
10 |
11 |
12 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/widget_pedometer_chart.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
23 |
24 |
25 |
26 |
27 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/widget_pedometer_info.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
9 |
10 |
19 |
20 |
21 |
31 |
32 |
41 |
42 |
51 |
52 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/widget_state_list_title_region.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
8 |
9 |
20 |
21 |
22 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/widget_state_view.xml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
10 |
11 |
12 |
17 |
18 |
25 |
26 |
32 |
33 |
37 |
38 |
42 |
43 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/widget_state_view_preview.xml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
10 |
11 |
12 |
18 |
19 |
25 |
26 |
31 |
32 |
37 |
38 |
43 |
44 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/widget_todo_list.xml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
10 |
11 |
12 |
19 |
20 |
27 |
28 |
35 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/widget_todo_list_preview.xml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
10 |
11 |
12 |
18 |
19 |
24 |
25 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/widget_todo_list_title_region.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
8 |
9 |
20 |
21 |
22 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/widget_todo_list_title_region_preview.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
18 |
19 |
20 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round_bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round_bg.png
--------------------------------------------------------------------------------
/app/src/main/res/values-night-v31/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/values-night/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/app/src/main/res/values-v21/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/values-v26/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
14 |
15 |
26 |
27 |
41 |
42 |
50 |
--------------------------------------------------------------------------------
/app/src/main/res/values-v31/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
9 |
12 |
--------------------------------------------------------------------------------
/app/src/main/res/values/attrs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #6200EE
4 | #3700B3
5 | #03DAC5
6 |
7 | #FFBB86FC
8 | #FF6200EE
9 | #FF3700B3
10 | #FF03DAC5
11 | #FF018786
12 | #FF000000
13 | #FFFFFFFF
14 | #FFE1F5FE
15 | #FF81D4FA
16 | #FF039BE5
17 | #FF01579B
18 |
19 |
20 | #F2F2F0
21 | #E9620B
22 | #03DAC5
23 | #3700B3
24 |
25 | #f6f5ec
26 | @color/iconMaskColor
27 |
28 | @color/iconMaskColor
29 | @color/colorPrimary
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 | #46485f
38 | #00ffffff
39 |
40 | #3DDC84
41 | #000000
42 |
43 | #45b97c
44 | #007947
45 | #005831
46 |
47 |
48 |
49 |
50 | #ffffff
51 | #f6f5ec
52 |
53 | @android:color/darker_gray
54 |
55 | @android:color/black
56 |
--------------------------------------------------------------------------------
/app/src/main/res/values/constants.xml:
--------------------------------------------------------------------------------
1 |
2 | 1000
3 | 0
4 | 360
5 |
6 | 600
7 | 600
8 |
9 | -120
10 | 120
11 |
12 |
13 |
14 |
15 |
16 |
17 | - 0.3
18 | - 1.0
19 | - 0
20 | - 0.25
21 |
--------------------------------------------------------------------------------
/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 0dp
5 | 200dp
6 | 130dp
7 | 260dp
8 | 160dp
9 | 60dp
10 | 48dp
11 | 32dp
12 | 16dp
13 |
14 | 16dp
15 | 8dp
16 | 16dp
17 |
--------------------------------------------------------------------------------
/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
11 |
12 |
16 |
17 |
21 |
22 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/app/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
24 |
25 |
28 |
--------------------------------------------------------------------------------
/app/src/main/res/xml/app_widget_count_down_list.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
22 |
--------------------------------------------------------------------------------
/app/src/main/res/xml/app_widget_pedometer.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/app/src/main/res/xml/app_widget_state_list.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
21 |
--------------------------------------------------------------------------------
/app/src/main/res/xml/app_widget_todo_list.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
23 |
--------------------------------------------------------------------------------
/app/src/test/java/com/example/appwidget/ExampleUnitTest.kt:
--------------------------------------------------------------------------------
1 | package com.example.appwidget
2 |
3 | import org.junit.Test
4 |
5 | import org.junit.Assert.*
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * See [testing documentation](http://d.android.com/tools/testing).
11 | */
12 | class ExampleUnitTest {
13 | @Test
14 | fun addition_isCorrect() {
15 | assertEquals(4, 2 + 2)
16 | }
17 | }
--------------------------------------------------------------------------------
/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 | buildscript {
3 | ext.kotlin_version = "1.3.72"
4 | repositories {
5 | google()
6 | jcenter()
7 | }
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:4.2.1'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 |
12 | // NOTE: Do not place your application dependencies here; they belong
13 | // in the individual module build.gradle files
14 | }
15 | }
16 |
17 | allprojects {
18 | repositories {
19 | google()
20 | jcenter()
21 | maven { url 'https://jitpack.io' }
22 | }
23 | }
24 |
25 | task clean(type: Delete) {
26 | delete rootProject.buildDir
27 | }
--------------------------------------------------------------------------------
/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 | # IDE (e.g. Android Studio) users:
3 | # Gradle settings configured through the IDE *will override*
4 | # any settings specified in this file.
5 | # For more details on how to configure your build environment visit
6 | # http://www.gradle.org/docs/current/userguide/build_environment.html
7 | # Specifies the JVM arguments used for the daemon process.
8 | # The setting is particularly useful for tweaking memory settings.
9 | org.gradle.jvmargs=-Xmx2048m
10 | # When configured, Gradle will run in incubating parallel mode.
11 | # This option should only be used with decoupled projects. More details, visit
12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
13 | # org.gradle.parallel=true
14 | # AndroidX package structure to make it clearer which packages are bundled with the
15 | # Android operating system, and which are packaged with your app"s APK
16 | # https://developer.android.com/topic/libraries/support-library/androidx-rn
17 | android.useAndroidX=true
18 | # Automatically convert third-party libraries to use AndroidX
19 | android.enableJetifier=true
20 | # Kotlin code style for this project: "official" or "obsolete":
21 | kotlin.code.style=official
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ellisonchan/NewAppWidget/2e2f95a86cf92b3f02390904f75b68665824539d/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 |
--------------------------------------------------------------------------------
/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | set DIRNAME=%~dp0
12 | if "%DIRNAME%" == "" set DIRNAME=.
13 | set APP_BASE_NAME=%~n0
14 | set APP_HOME=%DIRNAME%
15 |
16 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
17 | set DEFAULT_JVM_OPTS=
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windows variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 |
53 | :win9xME_args
54 | @rem Slurp the command line arguments.
55 | set CMD_LINE_ARGS=
56 | set _SKIP=2
57 |
58 | :win9xME_args_slurp
59 | if "x%~1" == "x" goto execute
60 |
61 | set CMD_LINE_ARGS=%*
62 |
63 | :execute
64 | @rem Setup the command line
65 |
66 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
67 |
68 | @rem Execute Gradle
69 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
70 |
71 | :end
72 | @rem End local scope for the variables with windows NT shell
73 | if "%ERRORLEVEL%"=="0" goto mainEnd
74 |
75 | :fail
76 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
77 | rem the _cmd.exe /c_ return code!
78 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
79 | exit /b 1
80 |
81 | :mainEnd
82 | if "%OS%"=="Windows_NT" endlocal
83 |
84 | :omega
85 |
--------------------------------------------------------------------------------
/local.properties:
--------------------------------------------------------------------------------
1 | ## This file must *NOT* be checked into Version Control Systems,
2 | # as it contains information specific to your local configuration.
3 | #
4 | # Location of the SDK. This is only used by Gradle.
5 | # For customization when using a Version Control System, please read the
6 | # header note.
7 | #Tue May 04 22:15:54 CST 2021
8 | sdk.dir=E\:\\AndroidSDK
9 |
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 | rootProject.name = "NewAppWidget"
--------------------------------------------------------------------------------