We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Please add this ability.
The text was updated successfully, but these errors were encountered:
You have to create a Stepper Adapter that extends AbstractFragmentStepAdapter then you implement method getViewModel(int position)
After you have done that you can follow the documentation
@NonNull @Override public StepViewModel getViewModel(@IntRange(from = 0) int position) { StepViewModel.Builder builder = new StepViewModel.Builder(context) .setTitle(R.string.tab_title); switch (position) { case 0: builder .setEndButtonLabel("This way") .setBackButtonLabel("Cancel") .setNextButtonEndDrawableResId(R.drawable.ms_forward_arrow) .setBackButtonStartDrawableResId(StepViewModel.NULL_DRAWABLE); break; case 1: builder .setEndButtonLabel(R.string.go_to_summary) .setBackButtonLabel("Go to first") .setBackButtonStartDrawableResId(R.drawable.ms_back_arrow); break; case 2: builder .setBackButtonLabel("Go back") .setEndButtonLabel("I'm done!"); break; default: throw new IllegalArgumentException("Unsupported position: " + position); } return builder.create(); }
Sorry, something went wrong.
No branches or pull requests
Please add this ability.
The text was updated successfully, but these errors were encountered: