diff --git a/demo/src/main/java/moe/feng/common/stepperview/demo/fragment/VerticalStepperAdapterDemoFragment.java b/demo/src/main/java/moe/feng/common/stepperview/demo/fragment/VerticalStepperAdapterDemoFragment.java index 573cd08..c730bbe 100644 --- a/demo/src/main/java/moe/feng/common/stepperview/demo/fragment/VerticalStepperAdapterDemoFragment.java +++ b/demo/src/main/java/moe/feng/common/stepperview/demo/fragment/VerticalStepperAdapterDemoFragment.java @@ -40,9 +40,9 @@ public void onViewCreated(View view, Bundle savedInstanceState) { public @Nullable String getSummary(int index) { switch (index) { case 0: - return "Summarized if needed"; + return "Summarized if needed" + (mVerticalStepperView.getCurrentStep() > index ? "; isDone!" : ""); case 2: - return "Last step"; + return "Last step" + (mVerticalStepperView.getCurrentStep() > index ? "; isDone!" : ""); default: return null; } diff --git a/demo/src/main/res/layout/fragment_vertical_stepper.xml b/demo/src/main/res/layout/fragment_vertical_stepper.xml index 12090cd..6bcd747 100644 --- a/demo/src/main/res/layout/fragment_vertical_stepper.xml +++ b/demo/src/main/res/layout/fragment_vertical_stepper.xml @@ -19,6 +19,7 @@ app:step_index="1" app:step_title="Step 1" app:step_summary="Summarized if needed" + app:step_summary_done="Summarized if needed. Done" app:step_state="selected"> +