public abstract class AbstractStepperType
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DOTS
Mobile step dots
|
static int |
NONE
No indicator
|
static int |
PROGRESS_BAR
Mobile step progress bar
|
static int |
TABS
Horizontal stepper with tabs
|
| Constructor and Description |
|---|
AbstractStepperType(StepperLayout stepperLayout) |
| Modifier and Type | Method and Description |
|---|---|
VerificationError |
getErrorAtPosition(int stepPosition)
Checks if there's an error for the step.
|
protected int |
getSelectedColor() |
protected int |
getUnselectedColor() |
void |
onNewAdapter(StepAdapter stepAdapter)
Called when
StepperLayout's adapter gets changed |
abstract void |
onStepSelected(int newStepPosition,
boolean userTriggeredChange)
Called when a step gets selected as the new current step.
|
void |
setError(int stepPosition,
VerificationError error)
Called to set whether the stepPosition has an error or not, changing it's appearance.
|
public static final int DOTS
public static final int PROGRESS_BAR
public static final int TABS
public static final int NONE
public AbstractStepperType(StepperLayout stepperLayout)
public abstract void onStepSelected(int newStepPosition,
boolean userTriggeredChange)
newStepPosition - new current step positionuserTriggeredChange - true if current step position changed as a direct result of user interactionpublic void setError(int stepPosition,
@Nullable
VerificationError error)
stepPosition - the step to set the errorerror - error instance or null if no error@Nullable public VerificationError getErrorAtPosition(int stepPosition)
stepPosition - the step to check for error@CallSuper
public void onNewAdapter(@NonNull
StepAdapter stepAdapter)
StepperLayout's adapter gets changedstepAdapter - new stepper adapterprotected int getSelectedColor()
protected int getUnselectedColor()