Android 현재 Fragment id 확인하기

사용 버전: Android Studio 4.0

사용 언어: Kotlin 1.3.72


안드로이드 현재 Fragment id 확인하기를 알아보겠습니다.


Navigation을 사용할 때, 현재 무슨 Fragment를 화면에 보여주고 있는지 확인하는 방법입니다.


NavHostFragment.findNavController(Host 이름).currentDestination!!.id





끝.



카테고리: Android

댓글

이 블로그의 인기 게시물

Python urllib.parse.quote()

KiCad 시작하기 3 (새로운 소자 추가하기)

KiCad 시작하기 2 (PCB 만들기)

Android Notification with Full Screen

Android Room database FTS

음악 총보(Score), 파트보(Part)

Python OpenCV 빈 화면 만들기

Android Minimum touch target size

딩기 요트 명칭

tensorflow tf.random.uniform()