Skip to content

Commit

Permalink
🚚 rename xml id
Browse files Browse the repository at this point in the history
  • Loading branch information
ii2001 authored and ii2001 committed Jul 25, 2024
1 parent 917b44c commit dc9b69b
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions android/app/src/main/res/layout/fragment_making_step.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,17 @@

<!-- Close Button -->
<ImageView
android:id="@+id/makingRecipeCloseButton"
android:id="@+id/stepRecipeCloseButton"
android:layout_width="28dp"
android:layout_height="28dp"
android:layout_margin="16dp"
android:src="@drawable/ic_close"
app:layout_constraintMarginStart="16dp"
app:layout_constraintMarginTop="16dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<!-- Recipe Title Text -->
<TextView
android:id="@+id/makingRecipeTitle"
android:id="@+id/stepRecipeTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
Expand All @@ -43,7 +41,7 @@
tools:text="Recipe title" />

<ImageView
android:id="@+id/makingRecipeThumbnail"
android:id="@+id/stepRecipeThumbnail"
android:layout_width="343dp"
android:layout_height="343dp"
android:layout_margin="16dp"
Expand All @@ -52,34 +50,35 @@
android:scaleType="centerCrop"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/makingRecipeTitle"
app:layout_constraintTop_toBottomOf="@id/stepRecipeTitle"
app:layout_constraintWidth_default="percent"
app:layout_constraintWidth_percent="0.8" />


<ImageView
android:id="@+id/makingRecipeAddImageButton"
android:id="@+id/stepAddImageButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_add_photo"
app:layout_constraintBottom_toBottomOf="@+id/stepRecipeThumbnail"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="center"
app:layout_constraintTop_toTopOf="@id/stepRecipeThumbnail"
tools:layout_editor_absoluteY="214dp" />

<include
android:id="@+id/makingRecipeEditTitle"
android:id="@+id/stepRecipeEditTitle"
layout="@layout/item_form_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="16dp"
app:content="@={vm.titleContent}"
app:hintContent="@{vm.titleHint}"
app:content="@={vm.introductionContent}"
app:hintContent="@{@string/step_making_hint}"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/makingRecipeThumbnail"
app:title="@{vm.title}" />
app:layout_constraintTop_toBottomOf="@id/stepRecipeThumbnail"
app:title="@{vm.stepNumber}" />

</androidx.constraintlayout.widget.ConstraintLayout>

Expand Down

0 comments on commit dc9b69b

Please sign in to comment.