recycler-view-divider / com.fondesa.recyclerviewdivider / DividerBuilder / insets

insets

fun insets(@Px start: Int, @Px end: Int): DividerBuilder

Sets the divider's insets. The inset will behave as a margin/padding of the divider's drawable. The start inset in an horizontal divider is the left inset in left-to-right and the right inset in right-to-left. The start inset in a vertical divider is the top inset in top-to-bottom and the bottom inset in bottom-to-top. The end inset in an horizontal divider is the right inset in left-to-right and the left inset in right-to-left. The end inset in a vertical divider is the bottom inset in top-to-bottom and the top inset in bottom-to-top.

Parameters

start - the start inset size in pixels used for each divider.

end - the end inset size in pixels used for each divider.

Return
this DividerBuilder instance.