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

how can i add a default or custom divider? #58

Closed
Morteza-Rastgoo opened this issue Jun 2, 2015 · 7 comments
Closed

how can i add a default or custom divider? #58

Morteza-Rastgoo opened this issue Jun 2, 2015 · 7 comments

Comments

@Morteza-Rastgoo
Copy link

No description provided.

@cymcsg
Copy link
Owner

cymcsg commented Jun 2, 2015

ultimateRecyclerView.addItemDecoration( new HorizontalDividerItemDecoration.Builder(this).build());
You can use addItemDecoration like this.

@Morteza-Rastgoo
Copy link
Author

thanks,...and how to customize it?

@cymcsg
Copy link
Owner

cymcsg commented Jun 3, 2015

You can add your custom DividerItemDecoration.

@cymcsg cymcsg closed this as completed Jun 7, 2015
@Morteza-Rastgoo
Copy link
Author

I added divider but first item after each sticky header does not have a divider at top.
how can i add that too?
untitled

@cymcsg
Copy link
Owner

cymcsg commented Jun 21, 2015

Do you think it will help you if you add a line in your custom sticky header?

@Morteza-Rastgoo
Copy link
Author

untitled2
I tried it! but notice that the line sticks to the header instead of the first item's top when scrolling down and it is ugly!

@cymcsg
Copy link
Owner

cymcsg commented Jun 22, 2015

Yes,it's ugly.
However add a line under sticky header is some kind strange for a item of recylcerview. I'll tried to find a way to enhance it.It's very grateful if you have some great ideas .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants