From 76ccb864097d5e3831ba8101ffe2f796f3b68376 Mon Sep 17 00:00:00 2001 From: flauschtrud Date: Thu, 12 Dec 2024 16:01:06 +0100 Subject: [PATCH] Use left-aligned text instead of centered text in cooking mode for accessability reasons #257 --- .../fragment_cooking_assistant_page.xml | 23 +++++-------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/app/src/main/res/layout/fragment_cooking_assistant_page.xml b/app/src/main/res/layout/fragment_cooking_assistant_page.xml index a8b65b4e..5322a394 100644 --- a/app/src/main/res/layout/fragment_cooking_assistant_page.xml +++ b/app/src/main/res/layout/fragment_cooking_assistant_page.xml @@ -11,25 +11,16 @@ - - + android:padding="32dp"> @@ -38,14 +29,13 @@ android:id="@+id/cooking_assistant_text" android:layout_width="wrap_content" android:layout_height="wrap_content" + app:layout_constraintTop_toBottomOf="@id/cooking_assistant_title" + app:layout_constraintStart_toStartOf="parent" android:minHeight="@dimen/min_height_for_accessibility" - android:gravity="center" android:scrollbars="vertical" android:text="@{viewModel.text}" android:textAppearance="@style/TextAppearance.AppCompat.Large" /> - -