Base Rcv Adapter
Base RecyclerView.Adapter implementation with content item management.
content 아이템 관리를 제공하는 기본 RecyclerView.Adapter 구현입니다.
For header/footer section support, use HeaderFooterRcvAdapter instead.
header/footer 섹션이 필요하면 HeaderFooterRcvAdapter를 사용하세요.
Features:
주요 기능:
Immediate list mutation with notify-based UI updates.
리스트를 즉시 변경하고 notify 기반으로 UI를 갱신합니다.
Item click and long-click listener support.
아이템 클릭 및 롱클릭 리스너를 지원합니다.
Partial bind hook via payloads.
payload 기반 부분 바인딩 훅을 지원합니다.
ViewHolder cache clearing support on recycle.
재활용 시 ViewHolder 캐시 정리를 지원합니다.
Parameters
Item type used by this adapter.
이 어댑터가 사용하는 아이템 타입입니다.
ViewHolder type used by this adapter.
이 어댑터가 사용하는 ViewHolder 타입입니다.
Inheritors
Functions
Appends a single content item immediately.
content 아이템 1개를 즉시 추가합니다.
Inserts a content item at a position immediately.
지정한 위치에 content 아이템을 즉시 삽입합니다.
Appends multiple content items immediately.
여러 content 아이템을 즉시 추가합니다.
Inserts multiple content items at a position immediately.
지정한 위치에 여러 content 아이템을 즉시 삽입합니다.
Returns content item at position or throws when invalid.
position의 content 아이템을 반환하고 유효하지 않으면 예외를 발생시킵니다.
Returns total adapter item count.
전체 adapter 아이템 수를 반환합니다.
Returns content item at position safely, or null.
position의 content 아이템을 안전하게 조회하고 없으면 null을 반환합니다.
Returns index of target content item, or -1 when not found.
대상 content 아이템의 인덱스를 반환하고 없으면 -1을 반환합니다.
Returns immutable snapshot of current content items.
현재 content 아이템의 불변 스냅샷을 반환합니다.
Returns mutable copy of current content items.
현재 content 아이템의 가변 복사본을 반환합니다.
Warning: This is a snapshot copy. Mutations do NOT affect the adapter state.
경고: 이 리스트는 스냅샷 복사본이므로 변경해도 adapter 상태에 반영되지 않습니다.
Moves a content item from one position to another immediately.
content 아이템을 한 위치에서 다른 위치로 즉시 이동합니다.
Binds holder without payloads.
payload 없이 holder를 바인딩합니다.
Binds holder with payloads when provided.
payload가 제공되면 holder를 payload 기반으로 바인딩합니다.
ViewHolder를 생성하고 클릭 리스너를 1회만 연결합니다.
holder가 재활용될 때 캐시된 child view를 정리합니다.
Clears all content items immediately.
모든 content 아이템을 즉시 제거합니다.
Removes content item at position immediately.
지정한 위치의 content 아이템을 즉시 제거합니다.
Removes the first matching content item immediately.
첫 번째로 일치하는 content 아이템을 즉시 제거합니다.
Removes matching content items with best-effort semantics.
best-effort 방식으로 일치하는 content 아이템들을 제거합니다.
Removes a contiguous content range by start index and count.
시작 인덱스와 개수 기준으로 연속된 content 구간을 제거합니다.
Replaces content item at position immediately.
지정한 위치의 content 아이템을 즉시 교체합니다.
Replaces all content items immediately.
전체 content 아이템을 즉시 교체합니다.
Sets item click listener.
아이템 클릭 리스너를 설정합니다.
Sets item long-click listener.
아이템 롱클릭 리스너를 설정합니다.