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

align active tab center in sliding tab layout #18

Open
nasir88 opened this issue Jul 24, 2017 · 1 comment
Open

align active tab center in sliding tab layout #18

nasir88 opened this issue Jul 24, 2017 · 1 comment

Comments

@nasir88
Copy link

nasir88 commented Jul 24, 2017

I have 14 items in scroll tab layout. While sliding from left to right, selected tab should be center same as play store. Please help me how to do that. Thank you.

@joshreed
Copy link
Owner

Not sure I follow what you're asking for, so forgive me if I interpreted correctly. My guess is what you're looking for is such that when you scroll left or right, the items have a partial element visible on both the left and right.

If so it depends on if your items have a fixed width or are variable widths. With fixed widths you may be able to set the scroll_distance accordingly to that width value (and a few other things) in order to achieve that effect. If it's variable widths, that gets more complicated--you'd probably have to either tweak the code to your situation or override some functions. (Or you could look at other libraries (perhaps image carousel libraries?) to see if they'd work for what you're going for.

Hopefully this helps!

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