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

View File

@ -7,7 +7,10 @@
<dimen name="call_notification_button_size">40dp</dimen> <dimen name="call_notification_button_size">40dp</dimen>
<dimen name="incoming_call_avatar_size">120dp</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="caller_name_text_size">34sp</dimen>
<dimen name="call_status_text_size">20sp</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> </resources>

View File

@ -16,7 +16,7 @@
</style> </style>
<style name="DialpadLetterStyle"> <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:alpha">0.8</item>
<item name="android:layout_centerHorizontal">true</item> <item name="android:layout_centerHorizontal">true</item>
</style> </style>