From 633aee829af4d7ce8aed576d5d3de27954b3a894 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Fri, 5 Sep 2025 11:04:16 +0200 Subject: [PATCH] Updated numpad digits from cirlces to squircles to make them bigger --- .../in_call_numpad_button_background.xml | 9 +++ .../shape_squircle_numpad_background.xml | 5 ++ ...ape_squircle_numpad_pressed_background.xml | 5 ++ .../layout-land/call_numpad_bottom_sheet.xml | 50 ++++++++-------- .../res/layout/call_numpad_bottom_sheet.xml | 53 +++++++++-------- app/src/main/res/layout/call_numpad_digit.xml | 2 +- .../layout/call_numpad_digit_with_letters.xml | 2 +- .../layout/call_numpad_digit_with_plus.xml | 2 +- .../call_numpad_digit_with_voicemail.xml | 2 +- .../layout/start_call_numpad_bottom_sheet.xml | 59 ++++++++++--------- app/src/main/res/values/dimen.xml | 1 + app/src/main/res/values/styles.xml | 4 ++ 12 files changed, 112 insertions(+), 82 deletions(-) create mode 100644 app/src/main/res/drawable/in_call_numpad_button_background.xml create mode 100644 app/src/main/res/drawable/shape_squircle_numpad_background.xml create mode 100644 app/src/main/res/drawable/shape_squircle_numpad_pressed_background.xml diff --git a/app/src/main/res/drawable/in_call_numpad_button_background.xml b/app/src/main/res/drawable/in_call_numpad_button_background.xml new file mode 100644 index 000000000..57ac431b8 --- /dev/null +++ b/app/src/main/res/drawable/in_call_numpad_button_background.xml @@ -0,0 +1,9 @@ + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/shape_squircle_numpad_background.xml b/app/src/main/res/drawable/shape_squircle_numpad_background.xml new file mode 100644 index 000000000..e0b7f9980 --- /dev/null +++ b/app/src/main/res/drawable/shape_squircle_numpad_background.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/shape_squircle_numpad_pressed_background.xml b/app/src/main/res/drawable/shape_squircle_numpad_pressed_background.xml new file mode 100644 index 000000000..c03011715 --- /dev/null +++ b/app/src/main/res/drawable/shape_squircle_numpad_pressed_background.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout-land/call_numpad_bottom_sheet.xml b/app/src/main/res/layout-land/call_numpad_bottom_sheet.xml index bb8a340db..c7fc113f7 100644 --- a/app/src/main/res/layout-land/call_numpad_bottom_sheet.xml +++ b/app/src/main/res/layout-land/call_numpad_bottom_sheet.xml @@ -77,20 +77,20 @@ android:layout_width="match_parent" android:layout_height="0dp" android:layout_marginTop="14dp" + android:layout_marginBottom="10dp" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/backspace" app:layout_constraintBottom_toBottomOf="parent" - android:layout_marginBottom="20dp" app:flow_horizontalStyle="spread" app:flow_wrapMode="aligned" app:flow_verticalGap="10dp" + app:flow_horizontalGap="10dp" app:flow_maxElementsWrap="6" app:constraint_referenced_ids="digit_1, digit_2, digit_3, digit_4, digit_5, digit_6, digit_7, digit_8, digit_9, digit_star, digit_0, digit_sharp" /> diff --git a/app/src/main/res/layout/call_numpad_bottom_sheet.xml b/app/src/main/res/layout/call_numpad_bottom_sheet.xml index ee2481b3f..bd94dbcc6 100644 --- a/app/src/main/res/layout/call_numpad_bottom_sheet.xml +++ b/app/src/main/res/layout/call_numpad_bottom_sheet.xml @@ -77,141 +77,144 @@ android:layout_width="match_parent" android:layout_height="0dp" android:layout_marginTop="14dp" + android:layout_marginBottom="10dp" + android:layout_marginStart="10dp" + android:layout_marginEnd="10dp" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/backspace" app:layout_constraintBottom_toBottomOf="parent" - android:layout_marginBottom="20dp" app:flow_horizontalStyle="spread" app:flow_wrapMode="aligned" app:flow_verticalGap="10dp" + app:flow_horizontalGap="10dp" app:flow_maxElementsWrap="3" app:constraint_referenced_ids="digit_1, digit_2, digit_3, digit_4, digit_5, digit_6, digit_7, digit_8, digit_9, digit_star, digit_0, digit_sharp" /> diff --git a/app/src/main/res/layout/call_numpad_digit.xml b/app/src/main/res/layout/call_numpad_digit.xml index d02a27f22..1fae2a8c9 100644 --- a/app/src/main/res/layout/call_numpad_digit.xml +++ b/app/src/main/res/layout/call_numpad_digit.xml @@ -15,7 +15,7 @@ android:onClick="@{() -> model.onDigitClicked(digit)}" android:layout_width="@dimen/call_dtmf_button_size" android:layout_height="@dimen/call_dtmf_button_size" - android:background="@drawable/in_call_button_background_red"> + android:background="@drawable/in_call_numpad_button_background"> + android:background="@drawable/in_call_numpad_button_background"> + android:background="@drawable/in_call_numpad_button_background"> + android:background="@drawable/in_call_numpad_button_background"> diff --git a/app/src/main/res/values/dimen.xml b/app/src/main/res/values/dimen.xml index e2b65dbb3..8830b12bb 100644 --- a/app/src/main/res/values/dimen.xml +++ b/app/src/main/res/values/dimen.xml @@ -68,6 +68,7 @@ 10dp 15dp 65dp + 120dp 30dp 200dp diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index a161245be..7f262f272 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -235,4 +235,8 @@ 8sp 1sp +