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 |
Tags
- hilt
- 코틀린
- CollapsingToolbarLayout
- HTTP
- sqlite
- 안드로이드
- Android
- onMeasure
- AppBarLayout
- Coroutine
- lifecycle
- ViewModel
- activity
- LiveData
- CustomView
- Behavior
- BOJ
- kotlin
- Navigation
- CoordinatorLayout
- notification
- View
- recyclerview
- room
- Algorithm
- onLayout
- 알고리즘
- DataBinding
- 백준
- 알림
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