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

DataStore는 SharedPreference를 대체하기 위해 구현된 라이브러리로, PreferenceDataStore와 ProtoDataStore 두 가지 종류가 있습니다. 이 글에서는 Key-Value 형태로 데이터를 저장하는 PreferenceDataStore를 사용해보도록 하겠습니다. 1. 의존성 추가 // PreferenceDataStore def datastore_version = "1.0.0" implementation "androidx.datastore:datastore-preferences:$datastore_version" App Gradle에 추가해줍니다. 2. DataStoreRepository 생성 저는 DataStore를 Repository에 넣어 관리하겠습니다. privat..
개발/Android
2022. 4. 7. 14:44