From ba9d26696b7bc5267c688902a9f791e7d386d99a Mon Sep 17 00:00:00 2001 From: SongFerngWang Date: Tue, 21 Dec 2021 05:39:09 +0800 Subject: [PATCH] [MEP] renew the sim confirm dialog UI - renew the sim confirm dialog Bug: 199902896 Test: build pass and local UI test Change-Id: Icb00b3fc32066e21d22cbeca1fdf50e5d7dbef20 Merged-In: Icb00b3fc32066e21d22cbeca1fdf50e5d7dbef20 --- AndroidManifest.xml | 8 ++-- .../sim_confirm_dialog_btn_outline.xml | 41 +++++++++++++++++++ .../sim_confirm_dialog_rounded_bg.xml | 30 ++++++++++++++ ...em_multiple_enabled_profiles_supported.xml | 30 ++++++++++++++ ...og_multiple_enabled_profiles_supported.xml | 31 ++++++++------ ...le_multiple_enabled_profiles_supported.xml | 25 +++++++++++ res/values-night/styles.xml | 15 +++++-- res/values-night/themes.xml | 6 +++ res/values/strings.xml | 2 +- res/values/styles.xml | 21 ++++++++++ res/values/themes.xml | 7 ++++ .../telephony/ConfirmDialogFragment.java | 22 +++++++--- 12 files changed, 212 insertions(+), 26 deletions(-) create mode 100644 res/drawable/sim_confirm_dialog_btn_outline.xml create mode 100644 res/drawable/sim_confirm_dialog_rounded_bg.xml create mode 100644 res/layout/sim_confirm_dialog_item_multiple_enabled_profiles_supported.xml create mode 100644 res/layout/sim_confirm_dialog_title_multiple_enabled_profiles_supported.xml diff --git a/AndroidManifest.xml b/AndroidManifest.xml index acbfa7e96e5..a2d80499901 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -690,12 +690,12 @@ + android:theme="@style/Theme.AlertDialog.SimConfirmDialog"/> + android:theme="@style/Theme.AlertDialog.SimConfirmDialog"/> + android:theme="@style/Theme.AlertDialog.SimConfirmDialog"/> + android:theme="@style/Theme.AlertDialog.SimConfirmDialog"/> diff --git a/res/drawable/sim_confirm_dialog_btn_outline.xml b/res/drawable/sim_confirm_dialog_btn_outline.xml new file mode 100644 index 00000000000..5722f8ce7ec --- /dev/null +++ b/res/drawable/sim_confirm_dialog_btn_outline.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/res/drawable/sim_confirm_dialog_rounded_bg.xml b/res/drawable/sim_confirm_dialog_rounded_bg.xml new file mode 100644 index 00000000000..ab7e39229c4 --- /dev/null +++ b/res/drawable/sim_confirm_dialog_rounded_bg.xml @@ -0,0 +1,30 @@ + + + + + + + + diff --git a/res/layout/sim_confirm_dialog_item_multiple_enabled_profiles_supported.xml b/res/layout/sim_confirm_dialog_item_multiple_enabled_profiles_supported.xml new file mode 100644 index 00000000000..003cdbfa137 --- /dev/null +++ b/res/layout/sim_confirm_dialog_item_multiple_enabled_profiles_supported.xml @@ -0,0 +1,30 @@ + + + + diff --git a/res/layout/sim_confirm_dialog_multiple_enabled_profiles_supported.xml b/res/layout/sim_confirm_dialog_multiple_enabled_profiles_supported.xml index 44044820653..610bf3de2e8 100644 --- a/res/layout/sim_confirm_dialog_multiple_enabled_profiles_supported.xml +++ b/res/layout/sim_confirm_dialog_multiple_enabled_profiles_supported.xml @@ -16,42 +16,49 @@ + android:orientation="vertical"> + android:layout_height="wrap_content" + android:paddingEnd="24dp" + android:paddingTop="16dp" + android:paddingStart="24dp" + android:gravity="center" + android:textAppearance="@style/TextAppearance.DialogMessage"/> - + android:textColor="?android:attr/textColorSecondary" + android:textAppearance="@style/TextAppearance.DialogMessage"/> \ No newline at end of file diff --git a/res/layout/sim_confirm_dialog_title_multiple_enabled_profiles_supported.xml b/res/layout/sim_confirm_dialog_title_multiple_enabled_profiles_supported.xml new file mode 100644 index 00000000000..f43303f8497 --- /dev/null +++ b/res/layout/sim_confirm_dialog_title_multiple_enabled_profiles_supported.xml @@ -0,0 +1,25 @@ + + + + diff --git a/res/values-night/styles.xml b/res/values-night/styles.xml index 87159b8b76f..a388855e8d7 100644 --- a/res/values-night/styles.xml +++ b/res/values-night/styles.xml @@ -16,9 +16,18 @@ --> + - + + \ No newline at end of file diff --git a/res/values-night/themes.xml b/res/values-night/themes.xml index 946cd91ce0a..4564827d40d 100644 --- a/res/values-night/themes.xml +++ b/res/values-night/themes.xml @@ -34,6 +34,12 @@ @*android:color/surface_dark + + + + + + + + diff --git a/res/values/themes.xml b/res/values/themes.xml index 4575be10711..3328b6c173e 100644 --- a/res/values/themes.xml +++ b/res/values/themes.xml @@ -142,6 +142,13 @@ @*android:style/Widget.DeviceDefault.Button.ButtonBar.AlertDialog + + +