Camera move, DataBinding between MapFragment.kt and MapViewModel#14
Merged
Camera move, DataBinding between MapFragment.kt and MapViewModel#14
Conversation
hwang434
commented
Sep 29, 2022
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 |
Owner
Author
There was a problem hiding this comment.
데이터 바인딩이 계속 안됐었는데 바인딩의 라이프사이클을 설정해주지 않아서 발생한 문제였다.
해당 코드를 설정해주니 제대로 동작했다.
hwang434
commented
Sep 29, 2022
hwang434
commented
Sep 29, 2022
hwang434
commented
Sep 29, 2022
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 |
Owner
Author
There was a problem hiding this comment.
집에서 데스크톱으로 작업하다가 다시 회사에서 노트북으로 작업하려니까 빌드 문제가 생겼다.
안드로이드 스튜디오 버전에 따라 발생하는 문제 같은데 자세한 건 추후에 빌드 관련 공부를 하면서 찾아봐야겠다.
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.
마커 클릭하면 화면 마커로 이동.
맵화면과 맵 뷰모델 데이터 바인딩