Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 1차원 DP
- 2차원 dp
- 99클럽
- @BeforeAll
- @BeforeEach
- @Builder
- @Entity
- @GeneratedValue
- @GenericGenerator
- @NoargsConstructor
- @Query
- @Table
- @Transactional
- Actions
- Amazon EFS
- amazon fsx
- Android Studio
- ANSI SQL
- ApplicationEvent
- assertThat
- async/await
- AVG
- AWS
- Azure
- bind
- builder
- button
- c++
- c++ builder
- c03
Archives
- Today
- Total
기록
[이해하기] Android/Fragment의 생명주기 본문
배경
앱을 개발하다가 RecyclerView를 갱신해야 했다.
Fragment 의 생명주기를 참고하여 onResume()에 리사이클러뷰를 갱신하는 코드를 작성해 해결했다.
Fragment 생명주기
1. MainActivity( otherFragment )에서 MainActivity( DiaryFragment )
2. MainActivity( DiaryFragment ) 에서 MainActivity( otherFragment )
3. MainActivity( DiaryFragment )에서 OtherActivity
4. OtherActivity에서 MainActivity( DiaryFragment )
'제대로 이해하기' 카테고리의 다른 글
[이해하기] java/initialize block (0) | 2022.09.10 |
---|---|
[이해하기] Android/API와 SDK (0) | 2022.05.24 |
[이해하기] kotlin/컬렉션 (0) | 2022.03.27 |
[이해하기] kotlin/Null 처리하기 (0) | 2022.03.27 |
[이해하기] Android/패키지 명명 (0) | 2022.03.26 |
Comments