RecyclerHorizontalItemHeaderDecoration
class RecyclerHorizontalItemHeaderDecoration(sectionCallback: RecyclerHorizontalItemHeaderDecoration.SectionCallback, headerViewID: Int, sectionHeaderLayoutName: Int) : RecyclerView.ItemDecoration
/* USAGE val sectionItemDecoration = RecyclerSectionItemDecoration(R.id.list_item_section_text, R.layout.section_header object : RecyclerSectionItemDecoration.SectionCallback {
override fun isSection(position: Int): Boolean { return position == 0 || listposition.name0 != listposition-1.surname0 }
override fun getSectionHeader(position: Int): CharSequence { return listposition.name.subSequence(0, 1) } }) recyclerView.addItemDecoration(sectionItemDecoration) / /
Constructors
Link copied to clipboard
constructor(sectionCallback: RecyclerHorizontalItemHeaderDecoration.SectionCallback, headerViewID: Int, sectionHeaderLayoutName: Int)
Types
Link copied to clipboard
interface SectionCallback
Functions
Link copied to clipboard
open fun getItemOffsets(@NonNull p0: Rect, @NonNull p1: View, @NonNull p2: RecyclerView, @NonNull p3: RecyclerView.State)
Link copied to clipboard
Link copied to clipboard