File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
material-stepper/src/main/java/com/stepstone/stepper Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -326,6 +326,18 @@ public void setCompleteButtonVerificationFailed(boolean verificationFailed) {
326326 mCompleteNavigationButton .setVerificationFailed (verificationFailed );
327327 }
328328
329+ /**
330+ * Set the number of steps that should be retained to either side of the
331+ * current step in the view hierarchy in an idle state. Steps beyond this
332+ * limit will be recreated from the adapter when needed.
333+ *
334+ * @param limit How many steps will be kept offscreen in an idle state.
335+ * @see ViewPager#setOffscreenPageLimit(int)
336+ */
337+ public void setOffscreenPageLimit (int limit ) {
338+ mPager .setOffscreenPageLimit (limit );
339+ }
340+
329341 private void init (AttributeSet attrs , @ AttrRes int defStyleAttr ) {
330342 initDefaultValues ();
331343 extractValuesFromAttributes (attrs , defStyleAttr );
You can’t perform that action at this time.
0 commit comments