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
//Override this method to set Step title for the Tabs, not necessary for other stepper types
113
+
returnnewStepViewModel.Builder(context)
114
+
.setTitle(R.string.tab_title) //can be a CharSequence instead
115
+
.create();
116
+
}
108
117
}
109
118
110
119
```
@@ -231,25 +240,36 @@ public class DelayedTransitionStepFragmentSample extends Fragment implements Blo
231
240
}
232
241
```
233
242
234
-
### Changing the Next button text per step
235
-
<b>TODO update + add tutorial for Back button</b>
236
-
Sometimes you might want to have different labels on the Next button on different steps e.g. use the default label on the first few steps,
243
+
### Changing Back/Next button labels per step
244
+
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,
### Using the same stepper styling across the application
@@ -288,7 +308,9 @@ This behaviour can be changed by setting ```ms_showBackButtonOnFirstStep``` to `
288
308
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.
289
309
290
310
### Using with Views instead of Fragments
291
-
<b>TODO: document</b>
311
+
It is possible to use this library without the need to rely on Fragments.
312
+
To do so you need to use ```AbstractStepAdapter``` instead of ```AbstractFragmentStepAdapter```.
313
+
For an example of how to use it with views please see the sample app.
292
314
293
315
### Advanced usage
294
316
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.
0 commit comments