[Refactor] 매칭 지도 오버레이 Compose 전환, 단일 ComposeView 전환 #550#553
Open
edv-Shin wants to merge 7 commits into
Open
Conversation
MatchingMapScreen 에 onCurrentLocationClick 콜백 파라미터를 추가하고 Box 안에 현재위치 버튼을 Compose Image 오버레이로 배치한다. 권한/위치 처리는 콜백으로 Fragment 에 위임한다.
Compose 오버레이로 대체된 current_location_btn ImageView 를 레이아웃에서 제거하고, Fragment 는 onCurrentLocationClick 콜백으로 checkPermissionAndMove 를 연결한다. 기존 XML 버튼 리스너는 삭제한다.
LazyRow 기반 필터 칩 줄. 초기화 칩 + MatchingFilterType 별 필터 칩을 나열하고, 선택 여부/라벨(종목명·다중선택·선택옵션)을 FilterState 로 그린다. 칩 클릭/초기화는 콜백으로 위임한다. (기존 RecyclerView 어댑터를 Compose 로 이식)
- filterState/isFilterLoading 구독 추가 - 상단 툴바(운동 장소 목록 버튼 + MatchingFilterRow)를 흰 배경 하단 라운드로 TopCenter 배치 - 필터 로딩 오버레이(딤 + 터치 차단 + CircularProgressIndicator) 추가 - onFilterClick/onClearClick/onExercisePlaceListClick 파라미터 추가
- MatchingMapFragment: 필터 어댑터/RV 세팅과 filterState·isFilterLoading 옵저버, exercisePlaceListBtn 리스너 제거. Compose 콜백으로 배선 (navigateToExercisePlace 헬퍼 추출). currentFilterType 바텀시트는 유지 - fragment_matching_map.xml: 전체를 단일 전체화면 ComposeView로 축소 - FilterUiModel: 어댑터 전용이던 FilterListItem 제거 - 삭제: MatchingFilterRVAdapter, MatchingFilterViewHolders, item_filter/item_filter_clear 레이아웃, 미사용 drawable(bg_current_location_btn, selector_filter_btn, bg_filter_btn, bg_filter_btn_selected, bg_matching_map_toolbar)
yunjaena
reviewed
Jul 4, 2026
|
|
||
| /** 초기화 칩: 항상 흰 배경 + 회색 테두리. */ | ||
| @Composable | ||
| private fun ClearChip(onClick: () -> Unit) { |
Contributor
There was a problem hiding this comment.
이부분도 modifier를 받으면 좋을거 같네요
| val contentColor = if (selected) ColorWhite300 else ColorBlack | ||
| Row( | ||
| modifier = | ||
| Modifier |
| ) { | ||
| val context = LocalContext.current | ||
| // 멤버 데이터 구독 | ||
| val mapData by viewModel.combinedMapData.collectAsStateWithLifecycle() |
Contributor
There was a problem hiding this comment.
현재 preview를 보기 어려운 구조로 되어있는데요 stateless한 Composable를 하나 만들고 viewmodel state값을 전달하게 하면 preview를 보기 쉬워지게 구현할수 있어요.
| modifier = | ||
| Modifier | ||
| .align(Alignment.BottomEnd) | ||
| .padding(dimensionResource(com.project200.undabang.presentation.R.dimen.base_horizontal_margin)) |
Contributor
There was a problem hiding this comment.
dimensionResource 도 좋은데 만약에 base또는 디자인 시스템을 만들면 compose theme 를 활용해보면 어떨까요?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#️⃣연관된 이슈
#550
📝작업 내용
#549(#546)에서 지도 본체만 Compose로 옮기고 XML로 남겨둔 오버레이 UI(현재위치 버튼, 필터, 필터 로딩)를 Compose로 전환하고, 매칭 지도 화면 전체를 단일
ComposeView로 통합했습니다.Box+Alignment.BottomEnd로 지도 위에 배치, 기존 XMLImageView(44dp)와 동일한 모양 재현FusedLocation/카메라 이동은onCurrentLocationClick콜백으로 Fragment 에 위임MatchingFilterRow신규)LazyRow로 초기화 칩 +MatchingFilterType별 필터 칩 나열FilterState로 그림MatchingFilterRVAdapter/FilterViewHolder의 로직을 이식MatchingMapScreen에 통합filterState/isFilterLoading를collectAsStateWithLifecycle로 구독CircularProgressIndicatorComposeView로 통합fragment_matching_map.xml을 전체화면ComposeView하나로 축소filterState·isFilterLoading옵저버 제거, Compose 콜백으로 배선 (currentFilterType바텀시트는 유지)MatchingFilterRVAdapter,MatchingFilterViewHolders,item_filter/item_filter_clear레이아웃bg_current_location_btn,selector_filter_btn,bg_filter_btn,bg_filter_btn_selected,bg_matching_map_toolbar)FilterUiModel에서 어댑터 전용이던FilterListItem제거MatchingMapController미사용isReady/currentBounds제거스크린샷 (선택)
💬리뷰 요구사항(선택)