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

Go to next slide by code #39

Open
am2222 opened this issue Oct 27, 2016 · 7 comments
Open

Go to next slide by code #39

am2222 opened this issue Oct 27, 2016 · 7 comments
Assignees
Labels

Comments

@am2222
Copy link

am2222 commented Oct 27, 2016

Hi,
Is there any way to go to next slide by code in a custom slide?

@radzio radzio assigned radzio and bezmian and unassigned radzio Oct 27, 2016
@bezmian bezmian changed the title go t next slide by code Go to next slide by code Oct 28, 2016
@bezmian
Copy link
Contributor

bezmian commented Oct 28, 2016

Currently no.

@brownpixel
Copy link

brownpixel commented Dec 21, 2016

There is a work around to go to a next slide by code through simulating a key press. You can do this from your activity that extends MaterialIntroActivity:

dispatchKeyEvent(new KeyEvent(KeyEvent.ACTION_DOWN,KeyEvent.KEYCODE_DPAD_RIGHT));

@aviadmini
Copy link

aviadmini commented Jan 11, 2017

You can also call onKeyDown of MaterialIntroActivity directly with KEYCODE_DPAD_RIGHT

@Mauker1
Copy link

Mauker1 commented Feb 13, 2017

I believe this is a good feature to implement on a future release.

@am2222
Copy link
Author

am2222 commented Feb 21, 2017

@brownpixel Hi, What about going to next slide by code in current SlideFragment.It seems it does not have any solutions

@luck-alex13
Copy link

Hi @am2222,
Try this code in Activity, that extends MaterialIntroActivity
findViewById(R.id.button_next).performClick();
It work for me fine.

@crearo
Copy link

crearo commented Jul 23, 2019

Even more so I'd like to move to the next page when the previous permission was granted. And this library just makes that so hard! Ah that would've been obvious and straightforward had i chosen to code it myself and not use a library :(

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

No branches or pull requests

8 participants