From 28ee0550ae20a7d717603d3d9bd54f89eb443438 Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 16 Aug 2023 14:55:42 +0200 Subject: [PATCH] Make buttons still visible when composing with media --- .../mastodon/layout/drawer_status_compose.xml | 88 +++++++++++-------- 1 file changed, 49 insertions(+), 39 deletions(-) diff --git a/app/src/main/res/layouts/mastodon/layout/drawer_status_compose.xml b/app/src/main/res/layouts/mastodon/layout/drawer_status_compose.xml index 1c54a62f..6aae2c09 100644 --- a/app/src/main/res/layouts/mastodon/layout/drawer_status_compose.xml +++ b/app/src/main/res/layouts/mastodon/layout/drawer_status_compose.xml @@ -138,44 +138,14 @@ app:layout_constraintTop_toBottomOf="@id/button_maths_composer" tools:visibility="visible" /> - - - - - - + app:layout_constraintTop_toBottomOf="@id/content" /> @@ -197,7 +167,7 @@ android:layout_marginVertical="6dp" android:checkable="true" app:icon="@drawable/ic_compose_sensitive" - app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintBottom_toBottomOf="@id/action_buttons_barrier" app:layout_constraintStart_toEndOf="@id/button_attach" app:layout_constraintTop_toBottomOf="@id/text_area_divider" app:toggleCheckedStateOnClick="true" /> @@ -211,7 +181,7 @@ app:icon="@drawable/ic_compose_visibility_public" app:iconGravity="textStart" app:iconPadding="0dp" - app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintBottom_toBottomOf="@id/action_buttons_barrier" app:layout_constraintStart_toEndOf="@id/button_sensitive" app:layout_constraintTop_toBottomOf="@id/text_area_divider" /> @@ -223,7 +193,7 @@ android:layout_marginVertical="6dp" android:fontFamily="monospace" android:minWidth="72dp" - app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintBottom_toBottomOf="@id/action_buttons_barrier" app:layout_constraintStart_toEndOf="@id/button_visibility" app:layout_constraintTop_toBottomOf="@id/text_area_divider" tools:text="EN" /> @@ -246,7 +216,7 @@ style="@style/Widget.AppCompat.ProgressBar.Horizontal" android:layout_width="48dp" android:layout_height="12dp" - app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintBottom_toBottomOf="@id/action_buttons_barrier" app:layout_constraintEnd_toStartOf="@id/button_post" app:layout_constraintStart_toEndOf="@id/button_language" app:layout_constraintTop_toBottomOf="@id/character_count" /> @@ -259,7 +229,7 @@ android:layout_marginVertical="6dp" android:layout_marginEnd="6dp" app:icon="@drawable/ic_compose_post" - app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintBottom_toBottomOf="@id/action_buttons_barrier" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toBottomOf="@id/text_area_divider" /> @@ -273,7 +243,7 @@ app:constraint_referenced_ids="button_attach_image,button_attach_audio,button_attach_video,button_close_attachment_panel,button_poll,button_attach_manual" app:flow_maxElementsWrap="3" app:flow_wrapMode="aligned" - app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintBottom_toBottomOf="@id/button_attach" app:layout_constraintStart_toStartOf="parent" /> @@ -399,6 +369,46 @@ + + + + + + + + + + +