From dfae42c912b9000ee97a3cb31a4a0cce9204af7b Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Mon, 29 Mar 2021 16:08:30 +0200 Subject: [PATCH] Cleanup layout --- .../res/layout/bottom_sheet_space_invite.xml | 22 ++++--------------- .../bottom_sheet_space_invite_chooser.xml | 20 +++++------------ .../fragment_matrix_to_room_space_card.xml | 4 ++-- .../fragment_space_create_choose_type.xml | 5 +++-- ...agment_space_create_generic_epoxy_form.xml | 1 + .../res/layout/fragment_space_preview.xml | 3 ++- .../main/res/layout/item_space_subspace.xml | 13 ++++------- vector/src/main/res/layout/item_space_tab.xml | 7 +++--- .../res/layout/item_space_top_summary.xml | 10 +++++---- .../res/layout/view_space_type_button.xml | 8 +++---- 10 files changed, 35 insertions(+), 58 deletions(-) diff --git a/vector/src/main/res/layout/bottom_sheet_space_invite.xml b/vector/src/main/res/layout/bottom_sheet_space_invite.xml index bf985dbcbb..125335e8af 100644 --- a/vector/src/main/res/layout/bottom_sheet_space_invite.xml +++ b/vector/src/main/res/layout/bottom_sheet_space_invite.xml @@ -35,46 +35,32 @@ app:layout_constraintVertical_bias="1" tools:text="@string/invite_people_to_your_space_desc" /> - - - - - - - - - - - + app:title="@string/invite_by_link" /> diff --git a/vector/src/main/res/layout/bottom_sheet_space_invite_chooser.xml b/vector/src/main/res/layout/bottom_sheet_space_invite_chooser.xml index 8c259d13b0..78fc07885c 100644 --- a/vector/src/main/res/layout/bottom_sheet_space_invite_chooser.xml +++ b/vector/src/main/res/layout/bottom_sheet_space_invite_chooser.xml @@ -21,34 +21,24 @@ android:textStyle="bold" app:layout_constraintTop_toTopOf="parent" /> - - - + app:title="@string/invite_to_space_with_name" /> - - - - + app:subTitle="@string/invite_just_to_this_room_desc" + app:title="@string/invite_just_to_this_room" /> diff --git a/vector/src/main/res/layout/fragment_matrix_to_room_space_card.xml b/vector/src/main/res/layout/fragment_matrix_to_room_space_card.xml index 198574cab8..c87a0d9e4b 100644 --- a/vector/src/main/res/layout/fragment_matrix_to_room_space_card.xml +++ b/vector/src/main/res/layout/fragment_matrix_to_room_space_card.xml @@ -75,7 +75,8 @@ android:layout_marginEnd="4dp" android:importantForAccessibility="no" android:src="@drawable/ic_room_profile_member_list" - app:tint="?riotx_text_primary" /> + app:tint="?riotx_text_primary" + tools:ignore="MissingPrefix" /> - diff --git a/vector/src/main/res/layout/fragment_space_create_choose_type.xml b/vector/src/main/res/layout/fragment_space_create_choose_type.xml index 73e6044a37..b668fd2f37 100644 --- a/vector/src/main/res/layout/fragment_space_create_choose_type.xml +++ b/vector/src/main/res/layout/fragment_space_create_choose_type.xml @@ -60,8 +60,8 @@ android:id="@+id/privateButton" android:layout_width="match_parent" android:layout_height="wrap_content" - app:icon="@drawable/ic_room_private" android:layout_marginBottom="16dp" + app:icon="@drawable/ic_room_private" app:layout_constraintBottom_toTopOf="@id/changeLaterText" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" @@ -77,7 +77,8 @@ android:text="@string/create_spaces_you_can_change_later" android:textColor="?riotx_text_secondary" android:textSize="14sp" - app:layout_constraintBottom_toBottomOf="parent"/> + app:layout_constraintBottom_toBottomOf="parent" /> + \ No newline at end of file diff --git a/vector/src/main/res/layout/fragment_space_create_generic_epoxy_form.xml b/vector/src/main/res/layout/fragment_space_create_generic_epoxy_form.xml index 7652a540dc..aea5000274 100644 --- a/vector/src/main/res/layout/fragment_space_create_generic_epoxy_form.xml +++ b/vector/src/main/res/layout/fragment_space_create_generic_epoxy_form.xml @@ -34,4 +34,5 @@ android:text="@string/next_pf" /> + \ No newline at end of file diff --git a/vector/src/main/res/layout/fragment_space_preview.xml b/vector/src/main/res/layout/fragment_space_preview.xml index 5781ddb570..7e89ab9070 100644 --- a/vector/src/main/res/layout/fragment_space_preview.xml +++ b/vector/src/main/res/layout/fragment_space_preview.xml @@ -93,7 +93,6 @@ app:layout_constraintTop_toBottomOf="@+id/spacePreviewPeekingProgress" tools:listitem="@layout/item_space_subspace" /> - + + \ No newline at end of file diff --git a/vector/src/main/res/layout/item_space_subspace.xml b/vector/src/main/res/layout/item_space_subspace.xml index d3b243132e..5dcf2fa4c6 100644 --- a/vector/src/main/res/layout/item_space_subspace.xml +++ b/vector/src/main/res/layout/item_space_subspace.xml @@ -1,6 +1,4 @@ - - - - + app:layout_constraintTop_toBottomOf="@id/childSpaceAvatar" /> - \ No newline at end of file diff --git a/vector/src/main/res/layout/item_space_tab.xml b/vector/src/main/res/layout/item_space_tab.xml index ea08fabea3..ae0b62fe46 100644 --- a/vector/src/main/res/layout/item_space_tab.xml +++ b/vector/src/main/res/layout/item_space_tab.xml @@ -1,11 +1,12 @@ - - + + diff --git a/vector/src/main/res/layout/item_space_top_summary.xml b/vector/src/main/res/layout/item_space_top_summary.xml index 35ca5ebf34..27b21ece9b 100644 --- a/vector/src/main/res/layout/item_space_top_summary.xml +++ b/vector/src/main/res/layout/item_space_top_summary.xml @@ -10,21 +10,22 @@ android:id="@+id/spaceSummaryMemberCountIcon" android:layout_width="16dp" android:layout_height="16dp" - android:src="@drawable/ic_room_profile_member_list" android:importantForAccessibility="no" + android:src="@drawable/ic_room_profile_member_list" app:layout_constraintBottom_toBottomOf="@+id/spaceSummaryMemberCountText" app:layout_constraintStart_toEndOf="@+id/spaceSummaryMemberCountText" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" - app:tint="?riotx_text_secondary" /> + app:tint="?riotx_text_secondary" + tools:ignore="MissingPrefix" /> + \ No newline at end of file diff --git a/vector/src/main/res/layout/view_space_type_button.xml b/vector/src/main/res/layout/view_space_type_button.xml index d48f123bdc..1f73caad13 100644 --- a/vector/src/main/res/layout/view_space_type_button.xml +++ b/vector/src/main/res/layout/view_space_type_button.xml @@ -12,9 +12,9 @@ android:id="@+id/buttonImageView" android:layout_width="24dp" android:layout_height="24dp" - android:minHeight="56dp" android:layout_margin="8dp" android:importantForAccessibility="no" + android:minHeight="56dp" android:src="@drawable/ic_public_room" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintStart_toStartOf="parent" @@ -30,14 +30,13 @@ android:textColor="?riotx_text_primary" android:textSize="16sp" android:textStyle="bold" + app:layout_constraintBottom_toTopOf="@id/subTitle" app:layout_constraintEnd_toStartOf="@id/rightChevron" app:layout_constraintStart_toEndOf="@id/buttonImageView" app:layout_constraintTop_toTopOf="parent" - app:layout_constraintBottom_toTopOf="@id/subTitle" app:layout_goneMarginBottom="0dp" tools:text="Public" /> - + app:tint="?riotx_text_secondary" + tools:ignore="MissingPrefix" /> \ No newline at end of file