일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 안드로이드
- ViewModel
- electron
- fragment
- 면접
- Gradle
- Datastore
- 일렉트론
- asLiveData()
- imageview
- 개발자
- 주석
- Jetpack Compose
- android studio
- TypeConverter
- 테마
- Binding Adapter
- Livedata
- hilt
- 스플래시
- BottomNavigationView
- kotlin
- recyclerview
- room
- themes.xml
- Navigation Component
- Safe Args
- nav_graph
- 취업
- Android
Archives
- Today
- Total
목록Livedata (2)
나만 보는 일기장

implementation "androidx.compose.runtime:runtime-livedata:$compose_version" 위 항목을 app 단위 Gradle에 추가해준 후, .observeAsState()를 통해 LiveData를 옵저빙 하면서도, 그 값은 State로써 받아와 쓸 수 있게 됩니다.
개발/Android
2022. 1. 13. 17:03