From 043245cdc49fb71423948b1c41aaa0fc38eb9abf Mon Sep 17 00:00:00 2001 From: FongMi Date: Fri, 24 Mar 2023 11:04:20 +0800 Subject: [PATCH] [mobile] update to Material3 - part 1 --- app/build.gradle | 4 ++-- app/src/main/res/color/nav.xml | 5 +++++ app/src/main/res/values/styles.xml | 8 +++----- app/src/mobile/res/drawable/shape_item_round.xml | 15 +++++++++++++++ .../res/drawable/shape_item_round_activated.xml | 6 +++--- .../res/drawable/shape_item_round_normal.xml | 6 +++--- app/src/mobile/res/drawable/shape_text_round.xml | 15 +++++++++++++++ app/src/mobile/res/drawable/shape_widget.xml | 4 ++-- app/src/mobile/res/layout/activity_main.xml | 7 +++++-- app/src/mobile/res/layout/adapter_config.xml | 4 ++-- app/src/mobile/res/layout/adapter_site.xml | 6 +++--- app/src/mobile/res/values/styles.xml | 7 ++++--- 12 files changed, 62 insertions(+), 25 deletions(-) create mode 100644 app/src/main/res/color/nav.xml create mode 100644 app/src/mobile/res/drawable/shape_item_round.xml create mode 100644 app/src/mobile/res/drawable/shape_text_round.xml diff --git a/app/build.gradle b/app/build.gradle index 844ab8b24..b6ffb367c 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -73,7 +73,7 @@ dependencies { implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1' implementation 'androidx.lifecycle:lifecycle-viewmodel:2.5.1' implementation 'androidx.preference:preference:1.2.0' - implementation 'androidx.room:room-runtime:2.5.0' + implementation 'androidx.room:room-runtime:2.5.1' implementation 'cat.ereza:customactivityoncrash:2.4.0' implementation 'com.github.bassaer:materialdesigncolors:1.0.0' implementation 'com.github.bumptech.glide:glide:4.14.2' @@ -92,6 +92,6 @@ dependencies { leanbackImplementation 'androidx.leanback:leanback:1.2.0-alpha02' leanbackImplementation 'me.jessyan:autosize:1.2.1' mobileImplementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0' - annotationProcessor 'androidx.room:room-compiler:2.5.0' + annotationProcessor 'androidx.room:room-compiler:2.5.1' annotationProcessor 'com.github.bumptech.glide:compiler:4.14.2' } \ No newline at end of file diff --git a/app/src/main/res/color/nav.xml b/app/src/main/res/color/nav.xml new file mode 100644 index 000000000..e8c22ee27 --- /dev/null +++ b/app/src/main/res/color/nav.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 62c1db706..bc6967652 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -30,16 +30,14 @@ true - - - -