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
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): RecyclerView
Content copied to clipboard
创建HoverLinearLayoutManager 线性列表
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, scrollEnabled: Boolean = true): RecyclerView
Content copied to clipboard
Properties
bindingAdapter
Link copied to clipboard
如果Adapter是BindingAdapter则返回对象, 否则抛出异常
models
Link copied to clipboard