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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
5
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
6
7
+
## [Unversioned]
8
+
### Added
9
+
- An option to show a subtitle in each tab
10
+
- An option to display an error message below step title in tabbed stepper
11
+
7
12
## [4.0.0]
8
13
### Added
9
14
-`setEndButtonVisible` and `setBackButtonVisible` methods in `StepViewModel.Builder` for toggling button visibility (issue #104)
@@ -18,4 +23,5 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
18
23
-**Breaking change:** Changed `setNextButtonLabel` methods in `StepViewModel.Builder` to `setEndButtonLabel` so that it works for both Next and Complete buttons (issue #107)
19
24
-**Breaking change:** Split `content` stepper feedback type into `content_progress` and `content_fade`.
Copy file name to clipboardExpand all lines: README.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@ Moreover, you can find there other examples, e.g. how to persist state on rotati
20
20
-[Advanced usage](#advanced-usage)
21
21
-[Making extra operations before going to the next step](#making-extra-operations-before-going-to-the-next-step)
22
22
-[Changing button labels & compound drawables per step](#changing-button-labels--compound-drawables-per-step)
23
+
-[Subtitles in tabs](#subtitles-in-tabs)
23
24
-[Custom styling](#custom-styling)
24
25
-[Using same stepper styling across the application](#using-same-stepper-styling-across-the-application)
25
26
-[Showing a Back button on first step](#showing-a-back-button-on-first-step)
@@ -300,6 +301,11 @@ It is also possible to hide Back/Next/Complete buttons on each step if needed.
300
301
To do so you need to call `setBackButtonVisible(false)` and/or `setEndButtonVisible(false)` on
301
302
`StepViewModel.Builder` in your adapter.
302
303
304
+
### Subtitles in tabs
305
+
You can set a subtitle for each step in stepper with tabs, e.g. to mark a step as optional.
306
+
To do so you need to set the subtitle by calling `StepViewModel.Builder#setSubtitle(int)` or `StepViewModel.Builder#setSubtitle(CharSequence)`
307
+
in your adapter's `getViewModel` method.
308
+
303
309
### Custom styling
304
310
Basic styling can be done by choosing the active and inactive step colors.
305
311
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))
@@ -352,6 +358,7 @@ To show an error in the tabbed stepper if step verification fails you need to se
If you want to keep the error displayed when going back to the previous step you need to also set `ms_showErrorStateOnBackEnabled` to `true`.
361
+
If you want display an error message below the step title you need to set `ms_showErrorMessageEnabled` to `true`. The message set in `VerificationError` will be then displayed.
355
362
356
363
### Stepper feedback
357
364
It is possible to show stepper feedback for ongoing operations (see [Stepper feedback](https://material.io/guidelines/components/steppers.html#steppers-types-of-steppers)).
@@ -510,6 +517,7 @@ A list of `ms_stepperLayoutTheme` attributes responsible for styling of StepperL
510
517
|*ms_stepTabDoneIndicatorStyle*|Used by ms_stepDoneIndicator in layout/ms_step_tab |
511
518
|*ms_stepTabIconBackgroundStyle*|Used by ms_stepIconBackground in layout/ms_step_tab |
512
519
|*ms_stepTabTitleStyle*|Used by ms_stepTitle in layout/ms_step_tab |
520
+
|*ms_stepTabSubtitleStyle*|Used by ms_stepSubtitle in layout/ms_step_tab |
513
521
|*ms_stepTabDividerStyle*|Used by ms_stepDivider in layout/ms_step_tab |
0 commit comments