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 | 29 | 30 | 31 |
Tags
- TEST
- 코루틴
- Rxjava
- architecture
- AWS
- Coroutine
- relay
- GitHub
- activity
- Python
- MyVoca
- livedata
- Compose
- 쿠링
- ProGuard
- 프로그래머스
- MiTweet
- boj
- 코드포스
- android
- Coroutines
- Hilt
- androidStudio
- Gradle
- textfield
- Codeforces
- pandas
- Kotlin
- 백준
- 암호학
Archives
- Today
- Total
목록ListAdapter (1)
이동식 저장소

ListAdapterAndroid에서 여러 개의 항목을 보여줘야 할 때는 거의 ``RecyclerView``를 사용한다. ``RecyclerView``에 데이터를 제공하는 방법은 여러 가지가 있는데, 최근에 ``ListAdapter``를 알게 되어 MyVoca에 적용해 보았다. 참고: DiffUtil and data binding with RecyclerView - Codelabs for Android Kotlin Fundamentals (Google) 기존 ``RecyclerView.Adapter``는 리스트가 변경될 때마다 ``notify...`` 메소드를 실행해줘야 값이 제대로 보인다. 그런데 데이터의 삽입, 삭제, 수정 등 상황마다 실행해야 하는 메소드가 달라서 (솔직히) 귀찮다. 그래서 궁극의 ..
프로젝트/MyVoca
2021. 4. 8. 22:55