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
All of the code & features mentioned in [Getting started](#getting-started) and [Advanced usage](#advanced-usage) are showcased in the sample app.
14
+
Moreover, you can find there other examples, e.g. how to persist state on rotation, display errors, change whether the user can go to the next step, etc. So please have a look!
15
+
16
+
## Jump to section
17
+
-[Supported steppers](#supported-steppers)
18
+
-[Supported features](#supported-features)
19
+
-[Getting started](#getting-started)
20
+
-[Advanced usage](#advanced-usage)
21
+
-[Making extra operations before going to the next step](#making-extra-operations-before-going-to-the-next-step)
22
+
-[Changing button labels & compound drawables per step](#changing-button-labels--compound-drawables-per-step)
23
+
-[Custom styling](#custom-styling)
24
+
-[Using same stepper styling across the application](#using-same-stepper-styling-across-the-application)
25
+
-[Showing a Back button on first step](#showing-a-back-button-on-first-step)
26
+
-[Using Views instead of Fragments as Steps](#using-views-instead-of-fragments-as-steps)
27
+
-[Showing an error on tabs if step verification failed](#showing-an-error-on-tabs-if-step-verification-failed)
28
+
-[Stepper feedback](#stepper-feedback)
29
+
-[Changing button text color when going to the next step should be disabled](#changing-button-text-color-when-going-to-the-next-step-should-be-disabled)
### Make extra operations before going to the next step (optional)
201
+
### Making extra operations before going to the next step
215
202
After clicking on the Next button if the user wants to e.g.:
216
203
* save something in the database
217
204
* make a network call on a separate Thread
@@ -264,7 +251,7 @@ public class DelayedTransitionStepFragmentSample extends Fragment implements Blo
264
251
}
265
252
```
266
253
267
-
### Changing Back/Next button labels & compound drawables per step
254
+
### Changing button labels & compound drawables per step
268
255
Sometimes you might want to have different labels on the Next and/or Back navigation buttons on different steps e.g. use the default labels on the first few steps,
269
256
but display 'Summary' just before the last page.
270
257
You might also want to use your custom icons instead of the default navigation button compound drawables or not show the compound drawables for some of the buttons.
@@ -301,7 +288,14 @@ In such case you need to override the `getViewModel(int)` method from the `StepA
301
288
}
302
289
```
303
290
304
-
### Using the same stepper styling across the application
291
+
### Custom styling
292
+
Basic styling can be done by choosing the active and inactive step colors.
293
+
There are some additional properties which can be changed directly from StepperLayout's attributes e.g. the background of bottom navigation buttons (see [StepperLayout attributes](#stepperlayout-attributes))
294
+
For advanced styling you can use `ms_stepperLayoutTheme` StepperLayout's attribute and provide your custom style to be used.
295
+
See 'Custom StepperLayout theme' in the sample app for an example.
### Using same stepper styling across the application
305
299
If you have many steppers in your application in different activities/fragments you might want to set a common style in a theme.
306
300
To do so, you need to set the `ms_stepperStyle` attribute in the theme, e.g.
307
301
```xml
@@ -336,7 +330,7 @@ This behaviour can be changed by setting ```ms_showBackButtonOnFirstStep``` to `
336
330
```
337
331
To get a callback when this button was pressed you need set a ```StepperListener``` and write your own custom return logic in the ```onReturn()``` method to e.g. close the Activity.
338
332
339
-
### Using with Views instead of Fragments
333
+
### Using Views instead of Fragments as Steps
340
334
It is possible to use this library without the need to rely on Fragments.
341
335
To do so you need to use ```AbstractStepAdapter``` instead of ```AbstractFragmentStepAdapter```.
342
336
For an example of how to use it with views please see the sample app.
@@ -401,17 +395,51 @@ public class StepperFeedbackStepFragment extends Fragment implements BlockingSte
401
395
402
396
```
403
397
404
-
### Custom styling
405
-
Basic styling can be done by choosing the active and inactive step colors.
406
-
There are some additional properties which can be changed directly from StepperLayout's attributes e.g. the background of bottom navigation buttons (see <a href="#stepperlayout-attributes">StepperLayout attributes</a>)
407
-
For advanced styling you can use `ms_stepperLayoutTheme` StepperLayout's attribute and provide your custom style to be used.
408
-
See'Custom StepperLayout theme' in the sample app for an example.
For other examples, e.g. persisting state on rotation, displaying errors, changing whether the user can go to the next step, etc. check out the sample app.
|*ms_stepperType*| one of `dots`, `progress_bar` or `tabs` |**REQUIRED:**Type of the stepper |
@@ -436,7 +464,7 @@ For other examples, e.g. persisting state on rotation, displaying errors, changi
436
464
| *ms_stepperFeedbackType* | flag(s): `none` or `tabs`, `content` & `disabled_bottom_navigation` | Type(s) of stepper feedback. Can be a combination of `tabs`, `content` & `disabled_bottom_navigation`. Default is `none`.|
437
465
| *ms_stepperLayoutTheme* | reference | Theme to use for even more custom styling of the stepper layout. It is recommended that it should extend @style/MSDefaultStepperLayoutTheme, which is the default theme used. |
438
466
439
-
### StepperLayout style attributes
467
+
### StepperLayout style attributes
440
468
A list of `ms_stepperLayoutTheme` attributes responsible for styling of StepperLayout's child views.
441
469
442
470
|Attribute name |Description|
@@ -457,11 +485,6 @@ A list of `ms_stepperLayoutTheme` attributes responsible for styling of StepperL
457
485
|*ms_stepTabIconBackgroundStyle*|Used by ms_stepIconBackground in layout/ms_step_tab |
458
486
|*ms_stepTabTitleStyle*|Used by ms_stepTitle in layout/ms_step_tab |
459
487
|*ms_stepTabDividerStyle*|Used by ms_stepDivider in layout/ms_step_tab |
460
-
461
-
## Missing features
462
-
- support for non-linear steppers
463
-
- support for non-editable steppers
464
-
- support forAlternative labels in the horizontal stepper
0 commit comments