-
Notifications
You must be signed in to change notification settings - Fork 1
RecyclerViewGridSpaceItemDecoration
arjinmc edited this page Oct 23, 2019
·
1 revision
It's a child class extends RecyclerView.ItemDecoration. No need to tell it,it will auto find the RecyclerView LayoutManager when it draws. Use RecyclerViewGridSpaceItemDecoration.Builder(Context).create() to new a ItemDecoration. Support StaggeredGridLayoutManager.
继承RecyclerView.ItemDecoration的子类。不要告诉它RecyclerView的布局方向。使用RecyclerViewGridSpaceItemDecoration.Builder(Context).create()的方式创建新的分割线。支持流水布局StaggeredGridLayoutManager。
The thickness for horizontal and vertical spacing between items.
元素之间的间隔,横向和纵向同宽度。
The thickness for horizontal spacing between items.
元素之间的横向间隔,也就是画纵向线的厚度。
The thickness for vertical spacing between items.
元素之间的纵向间隔,也就是画横向线的厚度。
Set the border Visible if you need,default value is false.
设置边框是否可见,默认值是false,不可见。