do not scale dialpad letter sizes

This commit is contained in:
tibbi 2022-12-30 17:03:40 +01:00
parent 4e67661094
commit f0e771d927
3 changed files with 9 additions and 11 deletions

View File

@ -58,7 +58,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/dialpad_2"
android:layout_marginBottom="@dimen/medium_margin"
android:layout_marginBottom="@dimen/small_margin"
android:text="ABC" />
</RelativeLayout>
@ -86,7 +86,6 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/dialpad_3"
android:layout_marginBottom="@dimen/medium_margin"
android:text="DEF" />
</RelativeLayout>
@ -114,7 +113,6 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/dialpad_4"
android:layout_marginBottom="@dimen/medium_margin"
android:text="GHI" />
</RelativeLayout>
@ -142,7 +140,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/dialpad_5"
android:layout_marginBottom="@dimen/medium_margin"
android:layout_marginBottom="@dimen/small_margin"
android:text="JKL" />
</RelativeLayout>
@ -170,7 +168,6 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/dialpad_6"
android:layout_marginBottom="@dimen/medium_margin"
android:text="MNO" />
</RelativeLayout>
@ -198,7 +195,6 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/dialpad_7"
android:layout_marginBottom="@dimen/medium_margin"
android:text="PQRS" />
</RelativeLayout>
@ -226,7 +222,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/dialpad_8"
android:layout_marginBottom="@dimen/medium_margin"
android:layout_marginBottom="@dimen/small_margin"
android:text="TUV" />
</RelativeLayout>
@ -254,7 +250,6 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/dialpad_9"
android:layout_marginBottom="@dimen/medium_margin"
android:text="WXYZ" />
</RelativeLayout>
@ -302,7 +297,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/dialpad_0"
android:layout_marginBottom="@dimen/medium_margin"
android:layout_marginBottom="@dimen/small_margin"
android:text="ABC" />
</RelativeLayout>

View File

@ -7,7 +7,10 @@
<dimen name="call_notification_button_size">40dp</dimen>
<dimen name="incoming_call_avatar_size">120dp</dimen>
<dimen name="dialpad_text_size">30sp</dimen>
<dimen name="caller_name_text_size">34sp</dimen>
<dimen name="call_status_text_size">20sp</dimen>
<!-- keep these 2 values in dp to avoid scaling -->
<dimen name="dialpad_text_size">28dp</dimen>
<dimen name="dialpad_letters_text_size">12dp</dimen>
</resources>

View File

@ -16,7 +16,7 @@
</style>
<style name="DialpadLetterStyle">
<item name="android:textSize">@dimen/smaller_text_size</item>
<item name="android:textSize">@dimen/dialpad_letters_text_size</item>
<item name="android:alpha">0.8</item>
<item name="android:layout_centerHorizontal">true</item>
</style>