Skip to content

Camera move, DataBinding between MapFragment.kt and MapViewModel#14

Merged
hwang434 merged 4 commits intodevelopefrom
developeMapDatabinding
Sep 29, 2022
Merged

Camera move, DataBinding between MapFragment.kt and MapViewModel#14
hwang434 merged 4 commits intodevelopefrom
developeMapDatabinding

Conversation

@hwang434
Copy link
Owner

마커 클릭하면 화면 마커로 이동.
맵화면과 맵 뷰모델 데이터 바인딩

Comment on lines 43 to 49
Log.d(TAG, "MapFragment - onCreateView()")
// Inflate the layout for this fragment
binding = DataBindingUtil.inflate(inflater, R.layout.fragment_map, container, false)
binding.lifecycleOwner = viewLifecycleOwner
mapView = binding.mapViewMapNaverMap

return binding.root
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

데이터 바인딩이 계속 안됐었는데 바인딩의 라이프사이클을 설정해주지 않아서 발생한 문제였다.
해당 코드를 설정해주니 제대로 동작했다.

Comment on lines 8 to 11
plugins {
id 'com.android.application' version '7.3.0' apply false
id 'com.android.library' version '7.3.0' apply false
id 'com.android.application' version '7.2.2' apply false
id 'com.android.library' version '7.2.2' apply false
id 'org.jetbrains.kotlin.android' version '1.7.10' apply false
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

집에서 데스크톱으로 작업하다가 다시 회사에서 노트북으로 작업하려니까 빌드 문제가 생겼다.
안드로이드 스튜디오 버전에 따라 발생하는 문제 같은데 자세한 건 추후에 빌드 관련 공부를 하면서 찾아봐야겠다.

@hwang434 hwang434 merged commit 7e5667f into develope Sep 29, 2022
@hwang434 hwang434 deleted the developeMapDatabinding branch September 29, 2022 01:56
@hwang434 hwang434 mentioned this pull request Sep 29, 2022
17 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant