Skip to content
New issue

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

New FlexibleItemDecoration #382

Closed
davideas opened this issue Jun 5, 2017 · 0 comments
Closed

New FlexibleItemDecoration #382

davideas opened this issue Jun 5, 2017 · 0 comments
Milestone

Comments

@davideas
Copy link
Owner

davideas commented Jun 5, 2017

The new item decorator should implement identical drawing technique of DividerItemDecorator (from Android API); Should have equal item offset; Section gap offset; Should work with all layouts and orientations.

For item spacing technique, the open source decorator ibosong/CommonItemDecoration can be merged.

Details of the functionalities:

  • Supports all RecyclerView LayoutManagers that implement (Linear, Grid or StaggeredGrid).
  • Can add equal space offset at all sides of an item.
  • Can customize the offset for each view type.
  • Can customize the offset at the 4 edges: first and last column / first and last row.
  • Recognizes the sections of FlexibleAdapter and can add gap offset between them.
  • Recognizes the orientation of the current Layout.
  • Supports the default Android divider android.R.attr.listDivider.
  • Supports a custom divider by DrawableRes id.
  • Supports drawing the divider over or underneath the items.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant