Skip to content

Commit d4c3557

Browse files
authored
Updated readme docs.
1 parent b78103f commit d4c3557

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ See the [Sample app](https://github.com/acefalobi/android-stepper/tree/master/ap
2626
* [Advanced Usage](#advanced-usage)
2727
* [Setup with Action Bar](#setup-with-action-bar)
2828
* [Override back button to go up](#override-back-button-to-go-up)
29+
* [Update Menu Programmatically](#update-menu-programmatically)
2930
* [XML Attributes](#xml-attributes)
3031
* [Contributing](#contributing)
3132
* [License](#license)
@@ -246,6 +247,14 @@ override fun onBackPressed() {
246247
}
247248
```
248249

250+
### Update Menu Programmatically
251+
252+
First make sure the menu item already has corresponding destination in the nav graph.
253+
254+
```kotlin
255+
stepper.menu.add(groupId, R.id.step_4_dest, order, "New Step")
256+
```
257+
249258
## XML Attributes
250259

251260
| Attribute name | Format | Description |

0 commit comments

Comments
 (0)