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
- BOJ
- AppBarLayout
- Navigation
- onMeasure
- CollapsingToolbarLayout
- Android
- 코틀린
- lifecycle
- Coroutine
- 안드로이드
- 알고리즘
- ViewModel
- CoordinatorLayout
- onLayout
- Behavior
- hilt
- LiveData
- 알림
- View
- sqlite
- room
- kotlin
- 백준
- notification
- HTTP
- recyclerview
- CustomView
- activity
- Algorithm
- DataBinding
Archives
- Today
- Total
목록ViewHolder 선택 (1)
개발일지
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/vJ3xt/btqTJSAAHdx/u9wHRoySwBgGqLZkAHNDoK/img.gif)
SelectionPredicate Select를 좀 더 디테일하게 설정할 수 있다.(하나만 선택, 여러개 선택, ViewHolder에 따른 조건적 선택) SelectionPredicates.createSelectAnything() : 아무거나 여러개 선택가능 SelectionPredicates.createSelectSingleAnything() : 아무거나 한개만 선택가능 SelectionTracker.SelectionPredicate를 상속받아서 구현 ViewHolder에 YES만 선택되게한 예제 class SelectionPredicate(private val recyclerView: RecyclerView) : SelectionTracker.SelectionPredicate() { override ..
Android (안드로이드)/RecyclerView
2021. 1. 15. 04:29