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 |
Tags
- BOJ
- room
- activity
- Behavior
- 알고리즘
- Coroutine
- DataBinding
- AppBarLayout
- onMeasure
- CoordinatorLayout
- onLayout
- 알림
- notification
- Android
- View
- sqlite
- recyclerview
- Algorithm
- ViewModel
- hilt
- LiveData
- 안드로이드
- 코틀린
- Navigation
- CustomView
- HTTP
- CollapsingToolbarLayout
- 백준
- kotlin
- lifecycle
Archives
- Today
- Total
목록LoadState (1)
개발일지

PagingAdapter RecyclerView와 결합하여 사용할 수 있고, LoadState로 Loading, Error 등 상황을 표시할 수 있습니다. 코드 BasePagingAdapter abstract class BasePagingAdapter(itemCallback: DiffUtil.ItemCallback) : PagingDataAdapter(itemCallback) { override fun onBindViewHolder(holder: BaseHolder, position: Int) { getItem(position)?.let { holder.bind(it) } } override fun onBindViewHolder(holder: BaseHolder, position: Int, payload..
Android (안드로이드)/Paging
2021. 5. 25. 12:00