일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- CoordinatorLayout
- LiveData
- recyclerview
- lifecycle
- Android
- ViewModel
- activity
- room
- BOJ
- CustomView
- Navigation
- CollapsingToolbarLayout
- 코틀린
- Coroutine
- onMeasure
- kotlin
- 알림
- View
- hilt
- 안드로이드
- AppBarLayout
- Algorithm
- 백준
- 알고리즘
- HTTP
- sqlite
- onLayout
- Behavior
- notification
- DataBinding
- Today
- Total
목록activity (5)
개발일지
알람 앱을 실행 후 MainActivity에서 AlarmActivity로 이동했고 홈 버튼을 눌러 태스크를 백그라운드로 보냈다. 그리고 알람에 맞춰 AlarmDialogActivity가 실행됐다. 그렇다면 AlarmDialogActivity가 백그라운드에 있는 태스크에 속하게 됩니다. 태스크를 포그라운드로 불러오고 백 버튼을 누르면 AlarmDialogActivity에서 어떤 Activity로 가야할까요? 이러한 규칙은 launchMode로 설정할 수 있고, Launch Mode는 manifest 또는 Intent로 설정할 수 있다. * 앱 실행히 하나의 Task가 생성되며 Launch Mode나 Intent를 통해 새로운 Task를 만들 수 있다. Manifest 설정 standard Activity를..
Context (맥락) Android Developer Interface to global information about an application environment. This is an abstract class whose implementation is provided by the Android system. It allows access to application-specific resources and classes, as well as up-calls for application-level operations such as launching activities, broadcasting and receiving intents, etc. 번역 응용 프로그램 환경에 대한 글로벌 정보에 대한 인터..
ActivityNavigator에서 Transition을 설정하면 된다. 해당 코드를 Activity finish에 작성한다. override fun finish() { super.finish() ActivityNavigator.applyPopAnimationsToPendingTransition(this) } Git (예제소스) github.com/KangTaeJong98/Example/tree/main/Android/Navigation KangTaeJong98/Example My Example Code. Contribute to KangTaeJong98/Example development by creating an account on GitHub. github.com
ConfigurationChange같은 상황으로 Activity가 onDestroy되고 재생성될 때 Fragment도 같이 재생성된다. 하지만 setRetainInstance(true)를 설정하면 onCreate, onDestory가 호출되지 않고 재사용된다.
onCreate 이 콜백은 시스템이 먼저 활동을 생성할 때 실행되는 것으로, 필수적으로 구현해야 합니다. 활동이 생성되면 생성됨 상태가 됩니다. onCreate() 메서드에서 활동의 전체 수명 주기 동안 한 번만 발생해야 하는 기본 애플리케이션 시작 로직을 실행합니다. 예를 들어 onCreate()를 구현하면 데이터를 목록에 바인딩하고, 활동을 ViewModel과 연결하고, 일부 클래스 범위 변수를 인스턴스화할 수도 있습니다. 이 메서드는 savedInstanceState 매개변수를 수신하는데, 이는 활동의 이전 저장 상태가 포함된 Bundle 객체입니다. 이번에 처음 생성된 활동인 경우 Bundle 객체의 값은 null입니다. Activity가 생성될 때 실행된다. Lifecycle에서 한번밖에 실행되..