Package com. drake. brv. utils
Types
Functions
divider
Link copied to clipboard
fun RecyclerView.divider(block: DefaultDecoration.() -> Unit): RecyclerView
Content copied to clipboard
函数配置分割线 具体配置参数查看DefaultDecoration
fun RecyclerView.divider(@DrawableRes() drawable: Int, orientation: DividerOrientation = DividerOrientation.HORIZONTAL): RecyclerView
Content copied to clipboard
dividerSpace
Link copied to clipboard
fun RecyclerView.dividerSpace(space: Int, orientation: DividerOrientation = DividerOrientation.HORIZONTAL): RecyclerView
Content copied to clipboard
grid
Link copied to clipboard
fun RecyclerView.grid(spanCount: Int = 1, orientation: Int = VERTICAL, reverseLayout: Boolean = false, scrollEnabled: Boolean = true): RecyclerView
Content copied to clipboard
创建HoverGridLayoutManager 网格列表
linear
Link copied to clipboard
fun RecyclerView.linear(orientation: Int = VERTICAL, reverseLayout: Boolean = false, scrollEnabled: Boolean = true, stackFromEnd: Boolean = false): RecyclerView
Content copied to clipboard
创建HoverLinearLayoutManager 线性列表
pageCreate
Link copied to clipboard
fun View.pageCreate(loadMoreEnabled: Boolean = true, stateEnabled: Boolean = true): PageRefreshLayout
Content copied to clipboard
setDifferModels
Link copied to clipboard
fun RecyclerView.setDifferModels(newModels: List<Any?>?, detectMoves: Boolean = true, commitCallback: Runnable? = null)
Content copied to clipboard
setup
Link copied to clipboard
fun RecyclerView.setup(block: BindingAdapter.(RecyclerView) -> Unit): BindingAdapter
Content copied to clipboard
staggered
Link copied to clipboard
fun RecyclerView.staggered(spanCount: Int, orientation: Int = VERTICAL, reverseLayout: Boolean = false, scrollEnabled: Boolean = true): RecyclerView
Content copied to clipboard
Properties
bindingAdapter
Link copied to clipboard
如果Adapter是BindingAdapter则返回对象, 否则抛出异常
models
Link copied to clipboard
mutable
Link copied to clipboard