getParentFragmentManager()
을 쓰면 된다.
코드 출처
How can I access getSupportFragmentManager() in a fragment?
I have a FragmentActivity and I want to use a map fragment within it. I'm having a problem getting the support fragment manager to access it. if (googleMap == null) { googleMap = ((
stackoverflow.com
써보니 잘 된다 ^^
'Android Studio' 카테고리의 다른 글
Material Bottom navigation 의 size 를 알아보자 (0) | 2022.05.23 |
---|---|
[error] This view is not constrained, it only has designtime positions, so it will jump to (0,0) unless you add constraints (0) | 2022.05.23 |
[안드로이드 스튜디오] BottomNavigationView 사용하기 (0) | 2022.05.17 |
[안드로이드 스튜디오] BottomNavigationView 색 바꾸기 (0) | 2022.05.17 |
[안드로이드 스튜디오] 구글 아이콘 (0) | 2022.05.17 |