Skip to content

Commit

Permalink
[chore] #3 변수명 수정 (layout -> rv)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan2dani committed Jul 12, 2023
1 parent 82a81d4 commit 59d9743
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ class HomeFragment : BindingFragment<FragmentHomeBinding>(R.layout.fragment_home

private fun initLayout() {
bestBakeryAdapter = BestBakeryAdapter()
binding.layoutHomeBestBakeryList.adapter = bestBakeryAdapter
binding.rvHomeBestBakeryList.adapter = bestBakeryAdapter
bestBakeryAdapter.submitList(viewModel.mockBestBakeryList)

bestReviewAdapter = BestReviewAdapter()
binding.layoutHomeBestReviewList.adapter = bestReviewAdapter
binding.rvHomeBestReviewList.adapter = bestReviewAdapter
bestReviewAdapter.submitList(viewModel.mockBestReviewList)
}
}
8 changes: 4 additions & 4 deletions app/src/main/res/layout/fragment_home.xml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
app:layout_constraintTop_toTopOf="@+id/tv_home_best_bakery_title1" />

<androidx.recyclerview.widget.RecyclerView
android:id="@+id/layout_home_best_bakery_list"
android:id="@+id/rv_home_best_bakery_list"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacing16"
Expand All @@ -130,7 +130,7 @@
android:text="@string/home_best_title1"
android:textAppearance="@style/TextAppearance.Title2"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/layout_home_best_bakery_list"
app:layout_constraintTop_toBottomOf="@id/rv_home_best_bakery_list"
tools:text="바이블님 맞춤 " />

<TextView
Expand All @@ -144,7 +144,7 @@
app:layout_constraintTop_toTopOf="@+id/tv_home_best_review_title1" />

<androidx.recyclerview.widget.RecyclerView
android:id="@+id/layout_home_best_review_list"
android:id="@+id/rv_home_best_review_list"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="20dp"
Expand All @@ -168,7 +168,7 @@
android:textColor="@color/gray_300"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/layout_home_best_review_list" />
app:layout_constraintTop_toBottomOf="@id/rv_home_best_review_list" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.core.widget.NestedScrollView>
</androidx.constraintlayout.widget.ConstraintLayout>
Expand Down
12 changes: 6 additions & 6 deletions app/src/main/res/layout/item_home_best_bakery.xml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="@+id/home_second_near_station"
app:layout_constraintBottom_toBottomOf="@+id/chip_home_second_near_station"
app:layout_constraintEnd_toEndOf="@id/gl_end"
app:layout_constraintTop_toTopOf="@+id/tv_best_bakery_title">

Expand All @@ -138,7 +138,7 @@
</LinearLayout>

<com.google.android.material.chip.Chip
android:id="@+id/home_first_near_station"
android:id="@+id/chip_home_first_near_station"
style="@style/Style.Material3.Chip.Station.Category"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
Expand All @@ -152,16 +152,16 @@
tools:text="건대역" />

<com.google.android.material.chip.Chip
android:id="@+id/home_second_near_station"
android:id="@+id/chip_home_second_near_station"
style="@style/Style.Material3.Chip.Station.Category"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/spacing4"
android:backgroundTint="@color/main_3"
android:text="@{bakery.secondNearStation == null ? `` : bakery.secondNearStation}"
app:layout_constraintBottom_toBottomOf="@+id/home_first_near_station"
app:layout_constraintStart_toEndOf="@id/home_first_near_station"
app:layout_constraintTop_toTopOf="@+id/home_first_near_station"
app:layout_constraintBottom_toBottomOf="@+id/chip_home_first_near_station"
app:layout_constraintStart_toEndOf="@id/chip_home_first_near_station"
app:layout_constraintTop_toTopOf="@+id/chip_home_first_near_station"
tools:text="건대역" />

</androidx.constraintlayout.widget.ConstraintLayout>
Expand Down

0 comments on commit 59d9743

Please sign in to comment.