Android Up button 사용하기

사용 버전: Android Studio 4.0

사용 언어: Kotlin 1.3.72


안드로이드 Up button 사용하기를 알아보겠습니다.


Up button은 안드로이드 액션 바에서 뒤로 가기 버튼을 말합니다.



우선 Navigation 설정을 해야 합니다.





MainActivity에 navController를 설정하고

setupActionBarWithNavController를 합니다.






그리고 onSupportNavigateUp을 override 합니다.



끝.


카테고리: Android

댓글

이 블로그의 인기 게시물

Python OpenCV 빈 화면 만들기

Python urllib.parse.quote()

Python bytes.fromhex()

Android AVD Ram size change

Forensics .pyc 파일 .py로 복구하기

Android Minimum touch target size

KiCad 시작하기 7 (FreeRoute 사용하기 2)

Android Notification with Full Screen

C++ OpenCV 모폴로지 침식, 팽창

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