Add some padding when hiding emoji button

Otherwise, some elements are too close to the edge (especially on edge
displays).

Change-Id: I305fc343e134661964f1d83d10d0d02aa9c22131
This commit is contained in:
SpiritCroc 2021-01-16 18:43:34 +01:00
parent 9d2c763b16
commit 4a95b69fcd
2 changed files with 4 additions and 0 deletions

View File

@ -127,6 +127,7 @@
app:layout_constraintEnd_toStartOf="@+id/composerEditText"
app:layout_constraintStart_toEndOf="@+id/composerEmojiButton"
app:layout_constraintTop_toTopOf="@id/sendButton"
app:layout_goneMarginStart="12dp"
tools:src="@drawable/ic_shield_black"
tools:visibility="visible" />
@ -142,6 +143,7 @@
app:layout_constraintEnd_toStartOf="@+id/attachmentButton"
app:layout_constraintStart_toEndOf="@+id/composerShieldImageView"
app:layout_constraintTop_toTopOf="parent"
app:layout_goneMarginStart="8dp"
tools:text="@tools:sample/lorem/random" />
<ImageButton

View File

@ -130,6 +130,7 @@
app:layout_constraintEnd_toStartOf="@+id/composerEditText"
app:layout_constraintStart_toEndOf="@+id/composerEmojiButton"
app:layout_constraintTop_toTopOf="@+id/sendButton"
app:layout_goneMarginStart="12dp"
tools:src="@drawable/ic_shield_black" />
<im.vector.app.features.home.room.detail.composer.ComposerEditText
@ -143,6 +144,7 @@
app:layout_constraintEnd_toStartOf="@+id/sendButton"
app:layout_constraintStart_toEndOf="@+id/composerShieldImageView"
app:layout_constraintTop_toBottomOf="@id/composer_preview_barrier"
app:layout_goneMarginStart="8dp"
tools:text="@tools:sample/lorem/random" />
<ImageButton