From 058ec77df7213b79dae6c40c7bd921671e2e3337 Mon Sep 17 00:00:00 2001 From: Roee Hershberg Date: Sat, 5 Feb 2022 01:13:50 +0200 Subject: [PATCH 1/5] Decrease the default avatar size Decrease the default avatar size while preserving ratio with the placeholder text size. --- atox/src/main/res/values/dimens.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atox/src/main/res/values/dimens.xml b/atox/src/main/res/values/dimens.xml index 4db023d15..36df434cb 100644 --- a/atox/src/main/res/values/dimens.xml +++ b/atox/src/main/res/values/dimens.xml @@ -7,7 +7,7 @@ 15dp 50dp - 28dp + 25.2dp - 50dp + 45dp From 98ccb63fd36d43e3bc28fa5f86e5730132d63838 Mon Sep 17 00:00:00 2001 From: Roee Hershberg Date: Tue, 4 Jan 2022 17:30:23 +0200 Subject: [PATCH 2/5] Resize avatar image and margins in contact list item Resize AvatarImageView to the default size in contact_list_view_item while maintaining good-looking margins. --- .../res/layout/contact_list_view_item.xml | 121 ++++++++++-------- 1 file changed, 69 insertions(+), 52 deletions(-) diff --git a/atox/src/main/res/layout/contact_list_view_item.xml b/atox/src/main/res/layout/contact_list_view_item.xml index 1c20046d5..655fc097e 100644 --- a/atox/src/main/res/layout/contact_list_view_item.xml +++ b/atox/src/main/res/layout/contact_list_view_item.xml @@ -6,67 +6,84 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:background="?android:attr/selectableItemBackground" - android:padding="10dp"> + android:paddingHorizontal="16dp" + android:paddingVertical="12dp"> - - + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintBottom_toBottomOf="parent"> - - - + + + + + + + + + + From 149d0551ea25b1793f0e6168dd07570df5ad8ac7 Mon Sep 17 00:00:00 2001 From: Roee Hershberg Date: Tue, 4 Jan 2022 17:57:03 +0200 Subject: [PATCH 3/5] Resize avatar image and margins in contact profile fragment Resize AvatarImageView to the default size in fragment_contact_profile while maintaining good-looking margins. --- .../main/res/layout/fragment_contact_profile.xml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/atox/src/main/res/layout/fragment_contact_profile.xml b/atox/src/main/res/layout/fragment_contact_profile.xml index 9ca6cc4b4..22bf1546e 100644 --- a/atox/src/main/res/layout/fragment_contact_profile.xml +++ b/atox/src/main/res/layout/fragment_contact_profile.xml @@ -8,20 +8,20 @@ tools:context=".ui.contactprofile.ContactProfileFragment"> - + android:layout_margin="16dp"> @@ -29,10 +29,12 @@ style="@style/TextAppearance.AppCompat.Widget.ActionBar.Title" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_margin="6dp" + android:layout_marginStart="16dp" + android:layout_centerVertical="true" + android:layout_toEndOf="@id/avatarImageView" android:textColor="@android:color/white" tools:text="Contact name or something here"/> - + Date: Tue, 4 Jan 2022 17:46:22 +0200 Subject: [PATCH 4/5] Increase space between avatar image and contact info in chat fragment --- atox/src/main/res/layout/fragment_chat.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atox/src/main/res/layout/fragment_chat.xml b/atox/src/main/res/layout/fragment_chat.xml index f99ecb967..86cbaf327 100644 --- a/atox/src/main/res/layout/fragment_chat.xml +++ b/atox/src/main/res/layout/fragment_chat.xml @@ -37,7 +37,7 @@ android:layout_height="38dp" android:layout_width="38dp" android:layout_centerVertical="true" - android:layout_marginEnd="10dp" + android:layout_marginEnd="16dp" app:shapeAppearanceOverlay="@style/CircleImageView" app:strokeColor="@null" /> From 52b4ee6ae20b285f764745cc90f02cb16c655cce Mon Sep 17 00:00:00 2001 From: Roee Hershberg Date: Thu, 6 Jan 2022 21:13:16 +0200 Subject: [PATCH 5/5] Resize AvatarImageView in fragment_call to 70% of available space --- atox/src/main/res/layout/fragment_call.xml | 40 +++++++++++++++++++--- 1 file changed, 35 insertions(+), 5 deletions(-) diff --git a/atox/src/main/res/layout/fragment_call.xml b/atox/src/main/res/layout/fragment_call.xml index 2fc54c936..02b520d7d 100644 --- a/atox/src/main/res/layout/fragment_call.xml +++ b/atox/src/main/res/layout/fragment_call.xml @@ -5,21 +5,51 @@ android:layout_height="match_parent" android:orientation="vertical"> - + + + - + + + +