From ca58a04f57a75148ea4fcb28842629ef7aa2487d Mon Sep 17 00:00:00 2001 From: ClaireGizard Date: Thu, 16 Dec 2021 21:10:03 +0100 Subject: [PATCH] Small UI fix in room member profile hearder (#4700) Small ui fix on room member profile name Co-authored-by: Claire Gizard --- changelog.d/4700.bugfix | 1 + .../view_stub_room_member_profile_header.xml | 54 ++++++++++--------- 2 files changed, 31 insertions(+), 24 deletions(-) create mode 100644 changelog.d/4700.bugfix diff --git a/changelog.d/4700.bugfix b/changelog.d/4700.bugfix new file mode 100644 index 0000000000..c8ad7c9b66 --- /dev/null +++ b/changelog.d/4700.bugfix @@ -0,0 +1 @@ +Fix name and shield are truncated in the room detail screen \ No newline at end of file diff --git a/vector/src/main/res/layout/view_stub_room_member_profile_header.xml b/vector/src/main/res/layout/view_stub_room_member_profile_header.xml index 6df1010196..40f4bd8515 100644 --- a/vector/src/main/res/layout/view_stub_room_member_profile_header.xml +++ b/vector/src/main/res/layout/view_stub_room_member_profile_header.xml @@ -12,8 +12,8 @@ android:id="@+id/memberProfileInfoContainer" android:layout_width="match_parent" android:layout_height="wrap_content" - android:paddingStart="16dp" - android:paddingEnd="16dp" + android:layout_marginStart="16dp" + android:layout_marginEnd="16dp" app:layout_constraintBottom_toTopOf="@id/memberProfileNameView" app:layout_constraintTop_toTopOf="@id/memberProfileNameView"> @@ -23,7 +23,7 @@ android:layout_height="128dp" android:layout_marginBottom="16dp" android:contentDescription="@string/avatar" - app:layout_constraintBottom_toTopOf="@id/memberProfileNameView" + app:layout_constraintBottom_toTopOf="@id/memberProfileLinearLayout" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" @@ -45,30 +45,36 @@ tools:src="@drawable/ic_presence_offline" tools:visibility="visible" /> - - - + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/memberProfileAvatarView"> + + + + + +