Skip to content

Commit

Permalink
[feat/naver_map_with_bottom_sheet]: BottomSheet Expanded 시 handle 숨김 처리
Browse files Browse the repository at this point in the history
  • Loading branch information
dogdduddy committed Feb 27, 2024
1 parent 1ea9a7b commit feb6542
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ class HomeFragment : Fragment(), ViewHolderBindListener {
override fun onStateChanged(bottomSheet: View, newState: Int) {
when (newState) {
BottomSheetBehavior.STATE_EXPANDED -> {
binding.bottomSheetHandle.isVisible = false
binding.mapOptionContainer.isVisible = false
binding.bottomSheet.background = ResourcesCompat.getDrawable(
resources,
Expand All @@ -112,6 +113,7 @@ class HomeFragment : Fragment(), ViewHolderBindListener {
}

BottomSheetBehavior.STATE_DRAGGING -> {
binding.bottomSheetHandle.isVisible = true
binding.mapOptionContainer.isVisible = true
binding.bottomSheet.background = ResourcesCompat.getDrawable(
resources,
Expand Down
1 change: 1 addition & 0 deletions presentation/src/main/res/layout/fragment_home.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
android:background="@drawable/bg_bottom_sheet_top_round">

<View
android:id="@+id/bottom_sheet_handle"
android:layout_width="40dp"
android:layout_height="3dp"
android:layout_marginTop="5dp"
Expand Down

0 comments on commit feb6542

Please sign in to comment.