Android Up button 사용하기
사용 버전: Android Studio 4.0
사용 언어: Kotlin 1.3.72
안드로이드 Up button 사용하기를 알아보겠습니다.
Up button은 안드로이드 액션 바에서 뒤로 가기 버튼을 말합니다.

우선 Navigation 설정을 해야 합니다.
MainActivity에 navController를 설정하고
setupActionBarWithNavController를 합니다.

그리고 onSupportNavigateUp을 override 합니다.

끝.
카테고리: Android
댓글
댓글 쓰기
궁금한 점은 댓글 달아주세요.
Comment if you have any questions.