You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SteppersView.ConfigsteppersViewConfig = newSteppersView.Config();
steppersViewConfig.setOnFinishAction(newOnFinishAction() {
@OverridepublicvoidonFinish() {
// Action on last step Finish button
}
});
steppersViewConfig.setOnCancelAction(newOnCancelAction() {
@OverridepublicvoidonCancel() {
// Action when click cancel on one of steps
}
});
steppersViewConfig.setOnChangeStepAction(newOnChangeStepAction() {
@OverridepublicvoidonChangeStep(intposition, SteppersItemactiveStep) {
// Action when click continue on each step
}
});
// Setup Support Fragment Manager for fragments in stepssteppersViewConfig.setFragmentManager(getSupportFragmentManager());
4. Create steps list
ArrayList<SteppersItem> steps = newArrayList<>();
SteppersItemstepFirst = newSteppersItem();
stepFirst.setLabel("Title of step");
stepFirst.setSubLabel("Subtitle of step");
stepFirst.setFragment(newSomeFragment());
stepFirst.setPositiveButtonEnable(false);
steps.add(stepFirst);
Copyright (C) 2015-2017 Krystian Drożdżyński
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
About
Steppers view library for Android, based on Google Material design guidelines