diff --git a/play-services-base/core/src/main/res/layout/preference_switch_bar.xml b/play-services-base/core/src/main/res/layout/preference_switch_bar.xml index 9818305b23..f062303828 100644 --- a/play-services-base/core/src/main/res/layout/preference_switch_bar.xml +++ b/play-services-base/core/src/main/res/layout/preference_switch_bar.xml @@ -27,7 +27,7 @@ android:paddingStart="56dp" android:paddingLeft="56dp" android:textAppearance="?attr/textAppearanceListItem" - android:textColor="?android:attr/textColorPrimaryInverse" + android:textColor="@android:color/white" tools:text="Enabled" /> - \ No newline at end of file + diff --git a/play-services-core/build.gradle b/play-services-core/build.gradle index 20cb3db9ec..1c4a9df24a 100644 --- a/play-services-core/build.gradle +++ b/play-services-core/build.gradle @@ -76,6 +76,9 @@ dependencies { implementation "androidx.preference:preference-ktx:$preferenceVersion" implementation "androidx.webkit:webkit:$webkitVersion" + // Material Components + implementation 'com.google.android.material:material:1.9.0' + // Navigation implementation "androidx.navigation:navigation-fragment-ktx:$navigationVersion" implementation "androidx.navigation:navigation-ui-ktx:$navigationVersion" diff --git a/play-services-core/src/main/res/color/preference_material_switch_color.xml b/play-services-core/src/main/res/color/preference_material_switch_color.xml new file mode 100644 index 0000000000..21f5616982 --- /dev/null +++ b/play-services-core/src/main/res/color/preference_material_switch_color.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/play-services-core/src/main/res/layout/preference_material_switch.xml b/play-services-core/src/main/res/layout/preference_material_switch.xml new file mode 100644 index 0000000000..aa4cb1570b --- /dev/null +++ b/play-services-core/src/main/res/layout/preference_material_switch.xml @@ -0,0 +1,11 @@ + + + diff --git a/play-services-core/src/main/res/values-night-v31/themes.xml b/play-services-core/src/main/res/values-night-v31/themes.xml new file mode 100644 index 0000000000..28e45a26e0 --- /dev/null +++ b/play-services-core/src/main/res/values-night-v31/themes.xml @@ -0,0 +1,13 @@ + + + + + + diff --git a/play-services-core/src/main/res/values-v31/themes.xml b/play-services-core/src/main/res/values-v31/themes.xml new file mode 100644 index 0000000000..571910dc88 --- /dev/null +++ b/play-services-core/src/main/res/values-v31/themes.xml @@ -0,0 +1,13 @@ + + + + + + diff --git a/play-services-core/src/main/res/values/themes.xml b/play-services-core/src/main/res/values/themes.xml index c2c8d4f978..7da8c6e458 100644 --- a/play-services-core/src/main/res/values/themes.xml +++ b/play-services-core/src/main/res/values/themes.xml @@ -19,7 +19,11 @@ + + + + + + +