본문 바로가기

개발일지

검색하기
개발일지
프로필사진 강태종

  • Programming (프로그래밍) (212)
    • Android (안드로이드) (99)
      • RecyclerView (14)
      • Room (7)
      • Databinding (6)
      • CoordinatorLayout (4)
      • Lifecycle (5)
      • HTTP (4)
      • Hilt (4)
      • Navigation (5)
      • View (8)
      • OAuth (4)
      • Paging (4)
      • Notification (5)
      • GestureLayout (0)
      • Widget (2)
    • 삽질 (18)
    • Algorithm (알고리즘) (34)
    • Kotlin (코틀린) (38)
    • Computer Science (4)
    • Design Pattern (디자인 패턴) (5)
    • Problem Solving (6)
    • Database (3)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/06   »
일 월 화 수 목 금 토
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
29 30
Tags
  • CollapsingToolbarLayout
  • onMeasure
  • lifecycle
  • ViewModel
  • Navigation
  • notification
  • 알림
  • CustomView
  • 코틀린
  • 안드로이드
  • Behavior
  • View
  • Coroutine
  • AppBarLayout
  • 알고리즘
  • activity
  • Algorithm
  • room
  • kotlin
  • hilt
  • sqlite
  • CoordinatorLayout
  • 백준
  • HTTP
  • recyclerview
  • BOJ
  • Android
  • DataBinding
  • onLayout
  • LiveData
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록setRetainInstance (1)

개발일지

Android in A..Z - Fragment.setRetainInstance

ConfigurationChange같은 상황으로 Activity가 onDestroy되고 재생성될 때 Fragment도 같이 재생성된다. 하지만 setRetainInstance(true)를 설정하면 onCreate, onDestory가 호출되지 않고 재사용된다.

Android (안드로이드) 2021. 2. 1. 18:03
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바