맨날 까먹어서 기록, Fragment 로 데이터를 전달 할때 Bundle 을 사용한다. 2024.02.28 - [Android/Etc] - [ Etc #15 ] Bundle vs Intent [ Etc #15 ] Bundle vs Intent 간단하게 정리 Intent 는 데이터를 전달하는 개념이고, Bundle 은 데이터를 저장하는 용도 주로 Activity 에 데이터를 전달 할 때에는 Intent 를 사용. Fragment 로 데이터를 저장(?) 할때에는 Bundle 을 사용.. jihunstudy.tistory.com FragmentMain().apply { arguments = Bundle().apply { putInt("int", 2) putString("string", "22") putBool..
Fragment는 Activity Lifecycle 내에서 또 다른 Lifecycle을 갖는 Layout으로 FragmentManager를 이용하여 관리된다. 방법은 replace 하는 방법과 모두 add 시키고 show / hide 하는 방법으로 Fragment를 관리할 수 있다. 이에 따른 Fragment Lifecycle이 달라질 수 있다는 것을 꼭 확인하자. supportFragmentManager .beginTransaction() .replace(R.id.frameLayout, fragment) .commitNow() ----------------------------------- 최초 등록 ----------------------------------- 2022-09-19 14:45:40.7..
- Total
- Today
- Yesterday
- 갤럭시 워치
- aos img url bitmap
- wear os
- 풀배열 키보드
- widget 이미지 로딩
- 테스트 앱 배포
- 폴더블 상태 유지
- 폴더블 이벤트 받기
- Fragment data
- firebase distribution
- Foldable Event
- github
- 쏘렌토 하이브리드
- Android
- 안드로이드 폴드 대응
- widget onreceive
- 웨어러블
- 맥 전용
- github secrets
- Dot indicator
- github actions
- widget glide
- flutter web
- 쏘렌토 하이브리드 시그니처
- 안드로이드 플립 대응
- widget 만들기
- widget onupdate
- 프래그먼트 데이터 저장
- android widget 만들기
- 테스트 배포
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |