본문 바로가기

코틀린15

05-1. ViewModel and ViewModelFactory Android Kotlin Fundamentals는 codelab에 올라와있는 강의를 한글로 번역한 내용입니다. Codelabs for Android Kotlin Fundamentals | Training Courses Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates. Last updated 2020-09-14 UTC. developer.android.com 코드는 github를 참고해주세요 05-1. ViewModel and ViewModelFactory 1. A.. 2021. 2. 17.
04-2. Complex LIfecycle Android Kotlin Fundamentals는 codelab에 올라와있는 강의를 한글로 번역한 내용입니다. Codelabs for Android Kotlin Fundamentals | Training Courses Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates. Last updated 2020-09-14 UTC. developer.android.com 코드는 github를 참고해주세요 04-2. Complex Lifecycle 1. Lifecycle libr.. 2021. 2. 17.
04-1. Lifecycles and Logging Android Kotlin Fundamentals는 codelab에 올라와있는 강의를 한글로 번역한 내용입니다. 코드는 github를 참고해주세요 04-1. Lifecycles and Logging 1. Explore the lifecycle methods and add basic logging 모든 액티비티와 프래그먼트는 lifecycle을 가지고 있다 activity 라이프 사이클은 activity가 처음 초기화 된 시점부터 마지막으로 destroy 되고 시스템 메모리 상에서 회수될 때 까지 여러 상태로 구성된다. 사용자가 앱을 시작하고 액티비티 간 또는 앱의 내부 및 외부를 이동하면서, 그리고 앱을 떠나면서 activity의 상태는 변한다 안드로이드는 ativity가 다른 상태로 변할 때 마다 ca.. 2021. 2. 16.
03-3. ExternalActivity Android Kotlin Fundamentals는 codelab에 올라와있는 강의를 한글로 번역한 내용입니다. 코드는 github를 참고해주세요 03-3. ExternalActivity 1. Set up and use the safe Args plugin 사용자가 앱 내에서 데이터를 공유하려면 하나의 Fragment에서 다른 Fragment로 parameter를 전달해야 한다. 이러한 트랜잭션 안에서 버그를 예방하고 형식을 안전하게 유지하려면 Gradle 플러그인인 Safe Args를 사용해라. 플러그인은 NavDirection 클래스를 생성하는데 이 클래스를 코드에 추가한다. 이번 실습에서는 NavDirection 클래스를 사용하여 fragment 간에 argument를 전달한다. Why you ne.. 2021. 2. 16.