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
+6Lines changed: 6 additions & 0 deletions
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
+
## [4.1.0]
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`.
*Note:* This adds a transitive dependency to AppCompat `25.4.0`
71
+
which is the minimum Android Support library version compatible with the Stepper library.
72
+
69
73
### Create layout in XML
70
74
71
75
```xml
@@ -300,6 +304,11 @@ It is also possible to hide Back/Next/Complete buttons on each step if needed.
300
304
To do so you need to call `setBackButtonVisible(false)` and/or `setEndButtonVisible(false)` on
301
305
`StepViewModel.Builder` in your adapter.
302
306
307
+
### Subtitles in tabs
308
+
You can set a subtitle for each step in stepper with tabs, e.g. to mark a step as optional.
309
+
To do so you need to set the subtitle by calling `StepViewModel.Builder#setSubtitle(int)` or `StepViewModel.Builder#setSubtitle(CharSequence)`
310
+
in your adapter's `getViewModel` method.
311
+
303
312
### Custom styling
304
313
Basic styling can be done by choosing the active and inactive step colors.
305
314
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 +361,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`.
364
+
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
365
356
366
### Stepper feedback
357
367
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 +520,7 @@ A list of `ms_stepperLayoutTheme` attributes responsible for styling of StepperL
510
520
|*ms_stepTabDoneIndicatorStyle*|Used by ms_stepDoneIndicator in layout/ms_step_tab |
511
521
|*ms_stepTabIconBackgroundStyle*|Used by ms_stepIconBackground in layout/ms_step_tab |
512
522
|*ms_stepTabTitleStyle*|Used by ms_stepTitle in layout/ms_step_tab |
523
+
|*ms_stepTabSubtitleStyle*|Used by ms_stepSubtitle in layout/ms_step_tab |
513
524
|*ms_stepTabDividerStyle*|Used by ms_stepDivider in layout/ms_step_tab |
0 commit comments