<?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent"> <androidx.core.widget.NestedScrollView android:layout_width="match_parent" android:layout_height="0dp" app:layout_constraintTop_toTopOf="parent" app:layout_constraintBottom_toTopOf="@+id/recipe_complete" app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toEndOf="parent"> <androidx.constraintlayout.widget.ConstraintLayout android:layout_width="match_parent" android:layout_height="wrap_content"> <TextView android:id="@+id/recipe_name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/recipe_name_filler" android:textSize="24sp" android:textColor="#000000" android:padding="16dp" app:layout_constraintTop_toTopOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintVertical_bias="0.06" /> <TextView android:id="@+id/recipe_summary" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="12dp" android:background="@drawable/gradient_background" android:padding="12dp" android:text="@string/recipe_summary_filler" android:textColor="#333333" android:textSize="16sp" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/recipe_name" /> <TextView android:id="@+id/recipe_ingredients" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="12dp" android:background="@drawable/gradient_background" android:gravity="center" android:padding="12dp" android:text="@string/ingredients_name_filler" android:textColor="#333333" android:textSize="16sp" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/recipe_summary" /> <TextView android:id="@+id/recipe_steps" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="12dp" android:background="@drawable/gradient_background" android:padding="12dp" android:text="@string/recipe_steps_filler" android:textColor="#333333" android:textSize="16sp" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.498" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/recipe_ingredients" /> </androidx.constraintlayout.widget.ConstraintLayout> </androidx.core.widget.NestedScrollView> <Button android:id="@+id/recipe_complete" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/recipe_complete" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toEndOf="parent" /> </androidx.constraintlayout.widget.ConstraintLayout>