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

Auto slide attribute #3

Open
michaelsam94 opened this issue Sep 21, 2020 · 4 comments
Open

Auto slide attribute #3

michaelsam94 opened this issue Sep 21, 2020 · 4 comments

Comments

@michaelsam94
Copy link

Hello vejei I need to ask you if there is possiblity to add auto slide feature like will be two attributes one is boolean is auto slide or not and other for duration in milliseconds of sliding time interval

@vejei
Copy link
Owner

vejei commented Sep 21, 2020

You don't need to slide automatically, because the indicator works with ViewPager(or ViewPager2). When the ViewPager slides to the next page, the indicator will slide to the next item. Maybe you can make the ViewPager slide automatically, and the indicator slides automatically. For the reasons mentioned above, the second attribute is naturally unnecessary.

@michaelsam94
Copy link
Author

yes I need to make viewpager slide automatically which I achieved with timer task but this timer task could be added to library so that user of library can tell that if they need this feature or not and if they need this feature they can provide duration of slide interval in milleseconds

@vejei
Copy link
Owner

vejei commented Sep 21, 2020

So you mean, add a attribute that allows the indicator to slide automatically, so that the ViewPager slides automatically when the indicator slides automatically, right?

That would be too weird. The indicator should follow the ViewPager, it slides only when the ViewPager slides.

@michaelsam94
Copy link
Author

ok I got it view pager sliding is responsibility of view pager itself or the component holding the view pager

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