create Instance Without Empty Last Page
static OnboardingFragmentCompat createInstanceWithoutEmptyLastPage(@NonNull() ArrayList<OnboardingPage> pages)
Content copied to clipboard
Factory method for creating a new instance of the Fragment using the provided list ofonboarding pages.
This method prevents the appending of an empty page to your pages.
If you don't need a custom number of pages and wish to use the default behaviour, you can usethe default constructor of OnboardingFragmentCompat.
Return
a new instance of the Fragment
Parameters
pages
the pages to be shown
Factory method for creating a new instance of the Fragment without appending an empty page tothe default pages.
If you wish to use the default behaviour, you can use the default constructor of .
Return
a new instance of the Fragment