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