File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff 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 |
You can’t perform that action at this time.
0 commit comments