diff --git a/android/app/src/main/res/layout/fragment_making_step.xml b/android/app/src/main/res/layout/fragment_making_step.xml index 5760a14b..377e6095 100644 --- a/android/app/src/main/res/layout/fragment_making_step.xml +++ b/android/app/src/main/res/layout/fragment_making_step.xml @@ -7,7 +7,7 @@ + type="net.pengcook.android.presentation.making.step.StepMakingViewModel" /> - - - - - - - - - - - - - - - - - - - - - - - - + name="vm" + type="net.pengcook.android.presentation.making.RecipeMakingViewModel" /> @@ -92,10 +44,6 @@ app:layout_constraintTop_toTopOf="parent" tools:text="Recipe title" /> - - - - - + app:title="@{vm.title}" /> + + app:selectedValue="@={vm.categorySelectedValue}" + app:title="@{vm.category}" /> + app:title="@{vm.ingredient}" /> @@ -173,8 +121,8 @@ app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/makingRecipeIngredient" - app:selectedValue="@={difficulty_selectedValue}" - app:title="@{difficulty}" /> + app:selectedValue="@={vm.difficultySelectedValue}" + app:title="@{vm.difficulty}" /> + app:title="@{vm.introduction}" />