From f5054106e84323cd40f796a4079ae8832b261b81 Mon Sep 17 00:00:00 2001 From: SpiritCroc Date: Tue, 22 Dec 2020 18:32:34 +0100 Subject: [PATCH] Exchange emoji and attachments button back to familiar layout Also drop the layout_goneMarginEnd attribute. Change-Id: I0782a92947a470e233e2596a721d7a652fa37c7e --- .../composer_layout_constraint_set_compact.xml | 17 ++++++++--------- .../composer_layout_constraint_set_expanded.xml | 17 ++++++++--------- 2 files changed, 16 insertions(+), 18 deletions(-) diff --git a/vector/src/main/res/layout/composer_layout_constraint_set_compact.xml b/vector/src/main/res/layout/composer_layout_constraint_set_compact.xml index a70451820b..f88c939711 100644 --- a/vector/src/main/res/layout/composer_layout_constraint_set_compact.xml +++ b/vector/src/main/res/layout/composer_layout_constraint_set_compact.xml @@ -114,8 +114,8 @@ android:src="@drawable/ic_attachment" android:tint="?android:textColorHint" app:layout_constraintBottom_toBottomOf="@id/sendButton" - app:layout_constraintEnd_toStartOf="@+id/composer_shield" - app:layout_constraintStart_toStartOf="parent" + app:layout_constraintEnd_toStartOf="@+id/sendButton" + app:layout_constraintStart_toEndOf="@id/composerEditText" app:layout_constraintTop_toTopOf="@id/sendButton" tools:ignore="MissingPrefix" /> @@ -125,7 +125,7 @@ android:layout_height="16dp" app:layout_constraintBottom_toBottomOf="@id/sendButton" app:layout_constraintEnd_toStartOf="@+id/composerEditText" - app:layout_constraintStart_toEndOf="@+id/attachmentButton" + app:layout_constraintStart_toEndOf="@+id/composer_emoji" app:layout_constraintTop_toTopOf="@id/sendButton" tools:src="@drawable/ic_shield_black" tools:visibility="visible" /> @@ -139,7 +139,7 @@ android:nextFocusLeft="@id/composerEditText" android:nextFocusUp="@id/composerEditText" app:layout_constraintBottom_toBottomOf="parent" - app:layout_constraintEnd_toStartOf="@+id/composer_emoji" + app:layout_constraintEnd_toStartOf="@+id/attachmentButton" app:layout_constraintStart_toEndOf="@+id/composer_shield" app:layout_constraintTop_toTopOf="parent" tools:text="@tools:sample/lorem/random" /> @@ -153,10 +153,9 @@ android:src="@drawable/ic_insert_emoji" android:tint="?android:textColorHint" app:layout_constraintBottom_toBottomOf="@id/sendButton" - app:layout_constraintEnd_toStartOf="@+id/sendButton" - app:layout_constraintStart_toEndOf="@id/composerEditText" - app:layout_constraintTop_toTopOf="@id/sendButton" - app:layout_goneMarginEnd="8dp" /> + app:layout_constraintEnd_toStartOf="@+id/composer_shield" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="@id/sendButton" /> diff --git a/vector/src/main/res/layout/composer_layout_constraint_set_expanded.xml b/vector/src/main/res/layout/composer_layout_constraint_set_expanded.xml index 142a9e1bde..d9992b1bf5 100644 --- a/vector/src/main/res/layout/composer_layout_constraint_set_expanded.xml +++ b/vector/src/main/res/layout/composer_layout_constraint_set_expanded.xml @@ -118,9 +118,10 @@ android:background="?android:attr/selectableItemBackground" android:src="@drawable/ic_attachment" android:tint="?android:textColorHint" - app:layout_constraintBottom_toBottomOf="@+id/sendButton" - app:layout_constraintEnd_toStartOf="parent" - app:layout_constraintTop_toTopOf="@+id/sendButton" + app:layout_constraintBottom_toBottomOf="@id/sendButton" + app:layout_constraintEnd_toStartOf="@+id/sendButton" + app:layout_constraintStart_toEndOf="@id/composerEditText" + app:layout_constraintTop_toTopOf="@id/sendButton" tools:ignore="MissingPrefix" /> @@ -155,11 +156,9 @@ android:background="?android:attr/selectableItemBackground" android:src="@drawable/ic_insert_emoji" android:tint="?android:textColorHint" - app:layout_constraintBottom_toBottomOf="@id/sendButton" - app:layout_constraintEnd_toStartOf="@+id/sendButton" - app:layout_constraintStart_toEndOf="@id/composerEditText" - app:layout_constraintTop_toTopOf="@id/sendButton" - app:layout_goneMarginEnd="8dp" /> + app:layout_constraintTop_toTopOf="@+id/sendButton" + app:layout_constraintBottom_toBottomOf="@+id/sendButton" + app:layout_constraintEnd_toStartOf="parent" />