Skip to content

Commit

Permalink
[fix/home_detail_action]: 전체 검색 화면으로 이동 버튼 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim-swit committed Mar 16, 2024
1 parent 8da7ee8 commit 5594396
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ class HomeFragment : Fragment(), ViewHolderBindListener {

setRestaurantListBottomSheet()
setGroup()
setView()

}

Expand Down Expand Up @@ -175,6 +176,12 @@ class HomeFragment : Fragment(), ViewHolderBindListener {
}
}
}

private fun setView() {
binding.groupSearch.setOnClickListener {
findNavController().navigate(HomeFragmentDirections.actionHomeFragmentToAllSearchFragment())
}
}

private fun setGroup() {
binding.groupArrow.setOnClickListener {
Expand Down
10 changes: 6 additions & 4 deletions presentation/src/main/res/layout/fragment_home.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
android:layout_width="match_parent"
android:layout_height="65dp"
android:layout_weight="0"
android:paddingHorizontal="@dimen/default_spacing"
android:paddingStart="@dimen/default_spacing"
android:background="@color/white">

<ImageView
Expand Down Expand Up @@ -49,19 +49,21 @@
android:src="@drawable/back_arrow"
android:rotation="180"
android:backgroundTint="@color/grey800"
android:layout_marginStart="@dimen/divider_large"
android:padding="8dp"
app:layout_constraintStart_toEndOf="@+id/group_name"
app:layout_constraintEnd_toStartOf="@+id/ic_group_search"
app:layout_constraintEnd_toStartOf="@+id/group_search"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"/>

<ImageView
android:id="@+id/ic_group_search"
android:id="@+id/group_search"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_thin_magnifying_glass"
android:backgroundTint="@color/grey700"
android:foregroundTint="@color/grey700"
android:padding="@dimen/half_spacing"
android:layout_marginEnd="@dimen/half_spacing"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"/>
Expand Down

0 comments on commit 5594396

Please sign in to comment.