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
suggestion #29
Comments
Hi @MissMyDearBear, as I understand, you want to automatically go to the next activity as soon as a user opens the last page of tutorial? I don't think it's a good user experience. User should be able to go to the next activity by pressing some button that will indicate he/she understood and completed tutorial. If you still want to open next activity automatically, you need to set @Override
public void onPageChanged(int position) {
if (position == TutorialFragment.EMPTY_FRAGMENT_POSITION) {
final Intent intent = new Intent(getContext(), NextActivity.class);
startActivity(intent);
getActivity().finish();
}
} Let me know if this helps you. |
I've checked your comment. If you want a smooth transition from tutorial page to your content, then use single activity: @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// ...
if (savedInstanceState == null) {
getSupportFragmentManager()
.beginTransaction()
// first add your content
.add(R.id.fragment_container, ContentFragment.newInstance())
// then add your tutorial
.add(R.id.fragment_container, TutorialFragment.newInstance())
.commit();
}
// ...
} In this case when you set |
First of all Nice work... |
reopen this ticket if you still have any questions related to it. |
In my APP,I want go to next activity when selecting the last page .
This is my code: setUseAutoRemoveTutorialFragment(true)
I find the activity,include Tutirual,perform an empty page,rather than liking the skip click events.
The text was updated successfully, but these errors were encountered: