From d95985841aeedf2302e82e6e8b13bf11f98860e8 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 31 Aug 2022 12:37:11 +0200 Subject: [PATCH] use a bit smaller font size around vcards --- .../smsmessenger/adapters/VCardViewerAdapter.kt | 4 ++-- app/src/main/res/layout/item_attachment_vcard.xml | 3 ++- app/src/main/res/layout/item_vcard_contact.xml | 2 +- app/src/main/res/layout/item_vcard_contact_property.xml | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/adapters/VCardViewerAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/adapters/VCardViewerAdapter.kt index 2b08b175..e6484c83 100644 --- a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/adapters/VCardViewerAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/adapters/VCardViewerAdapter.kt @@ -58,7 +58,7 @@ class VCardViewerAdapter( item_contact_name.apply { text = name setTextColor(textColor) - setTextSize(TypedValue.COMPLEX_UNIT_PX, fontSize * 1.2f) + setTextSize(TypedValue.COMPLEX_UNIT_PX, fontSize * 1.1f) } item_contact_image.apply { val photo = item.vCard.photos.firstOrNull() @@ -108,7 +108,7 @@ class VCardViewerAdapter( item_vcard_property_title.apply { text = property.value setTextColor(textColor) - setTextSize(TypedValue.COMPLEX_UNIT_PX, fontSize * 1.2f) + setTextSize(TypedValue.COMPLEX_UNIT_PX, fontSize * 1.1f) } item_vcard_property_subtitle.apply { text = property.type diff --git a/app/src/main/res/layout/item_attachment_vcard.xml b/app/src/main/res/layout/item_attachment_vcard.xml index 36339f34..03ab668b 100644 --- a/app/src/main/res/layout/item_attachment_vcard.xml +++ b/app/src/main/res/layout/item_attachment_vcard.xml @@ -22,7 +22,8 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="@dimen/normal_margin" - android:textSize="@dimen/big_text_size" + android:ellipsize="end" + android:textSize="@dimen/bigger_text_size" app:layout_constraintStart_toEndOf="@id/vcard_photo" app:layout_constraintTop_toTopOf="parent" tools:text="Bob" /> diff --git a/app/src/main/res/layout/item_vcard_contact.xml b/app/src/main/res/layout/item_vcard_contact.xml index 6246baa6..7ff17f6e 100644 --- a/app/src/main/res/layout/item_vcard_contact.xml +++ b/app/src/main/res/layout/item_vcard_contact.xml @@ -40,7 +40,7 @@ android:maxLines="1" android:paddingStart="@dimen/medium_margin" android:paddingEnd="@dimen/activity_margin" - android:textSize="@dimen/big_text_size" + android:textSize="@dimen/bigger_text_size" tools:text="John Doe" />