Closed ghost closed 4 years ago
val itemDecoration = FlexboxItemDecoration(viewBinding.root.context) itemDecoration.setDrawable(ContextCompat.getDrawable(viewBinding.root.context, R.drawable.vertical_divider)) itemDecoration.setOrientation(FlexboxItemDecoration.VERTICAL) it.addItemDecoration(itemDecoration)
Can I set the divider mode, just as similar as the FlexboxLayout, we can set like below:
layout.showDividerVertical = FlexboxLayout.SHOW_DIVIDER_MIDDLE + FlexboxLayout.SHOW_DIVIDER_END
1.1.1
Sorry that isn't not supported at this moment for FlexboxItemDecoration
Issues and steps to reproduce
Expected behavior
Can I set the divider mode, just as similar as the FlexboxLayout, we can set like below:
Version of the flexbox library
1.1.1
Link to code