We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如题,在设置LinearLayoutManager 后,添加了分割线代码如下
mDataBind.listRecyclerView.vertical().divider { orientation = DividerOrientation.VERTICAL startVisible = true endVisible = true setDivider(10,true) setMargin(8,8) }.adapter = testAdapter
想通过setMargin方法设置左右两边的边距,但是没有效果,想问一下,目前万能分割线是否支持这种需求呢?
The text was updated successfully, but these errors were encountered:
LinearLayoutManager不支持四周全包裹的分割线.
两种解决办法
推荐第一种解决办法, 示例代码如下
binding.rv.grid().divider{ includeVisible = true setDivider(2, true) setColor(Color.RED) orientation = DividerOrientation.GRID }.setup { addType<DividerModel>(R.layout.item_divider_vertical) }.models = getData()
Sorry, something went wrong.
明白了,感谢 👍👍👍
No branches or pull requests
如题,在设置LinearLayoutManager 后,添加了分割线代码如下
想通过setMargin方法设置左右两边的边距,但是没有效果,想问一下,目前万能分割线是否支持这种需求呢?
The text was updated successfully, but these errors were encountered: