From 6232af2295e6284d13f8ce9f3f127b2478ef3901 Mon Sep 17 00:00:00 2001 From: Kirill Kamakin Date: Sun, 28 Nov 2021 16:03:40 +0300 Subject: [PATCH] Improve recipe info screen UI --- .../main/res/layout/fragment_recipe_info.xml | 110 ++++++++++++------ .../res/layout/view_holder_ingredient.xml | 1 - .../res/layout/view_holder_instruction.xml | 51 ++++---- 3 files changed, 106 insertions(+), 56 deletions(-) diff --git a/app/src/main/res/layout/fragment_recipe_info.xml b/app/src/main/res/layout/fragment_recipe_info.xml index 2cf9084..780695f 100644 --- a/app/src/main/res/layout/fragment_recipe_info.xml +++ b/app/src/main/res/layout/fragment_recipe_info.xml @@ -10,85 +10,127 @@ android:layout_width="match_parent" android:layout_height="wrap_content"> + + + + - + android:layout_marginHorizontal="8dp" + android:layout_marginTop="11dp" + android:layout_marginBottom="20dp" + app:cardCornerRadius="@dimen/rounded_corner_size_default" + app:cardElevation="10dp" + app:layout_constraintBottom_toTopOf="@+id/instructions_header" + app:layout_constraintEnd_toStartOf="@+id/end_guide" + app:layout_constraintStart_toEndOf="@+id/start_guide" + app:layout_constraintTop_toBottomOf="@+id/description"> - + + + + + + + + app:layout_constraintBottom_toTopOf="@+id/instructions_list" + app:layout_constraintEnd_toStartOf="@+id/end_guide" + app:layout_constraintStart_toEndOf="@+id/start_guide" + app:layout_constraintTop_toBottomOf="@+id/ingredients_holder" /> diff --git a/app/src/main/res/layout/view_holder_ingredient.xml b/app/src/main/res/layout/view_holder_ingredient.xml index 4b98619..04af9b3 100644 --- a/app/src/main/res/layout/view_holder_ingredient.xml +++ b/app/src/main/res/layout/view_holder_ingredient.xml @@ -9,7 +9,6 @@ android:id="@+id/checkBox" android:layout_width="0dp" android:layout_height="wrap_content" - android:layout_margin="@dimen/margin_small" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" diff --git a/app/src/main/res/layout/view_holder_instruction.xml b/app/src/main/res/layout/view_holder_instruction.xml index c83507d..676aaba 100644 --- a/app/src/main/res/layout/view_holder_instruction.xml +++ b/app/src/main/res/layout/view_holder_instruction.xml @@ -1,30 +1,39 @@ - - + android:paddingHorizontal="18dp" + android:paddingVertical="12dp"> - + - \ No newline at end of file + + + +