All classes were moved into the package com.stephentuso.welcome
(update the proguard rule!)
WelcomeScreen*
renamed to Welcome*
(e.g. WelcomeScreenConfiguration
-> WelcomeConfiguration
)
WelcomeScreenBuilder
refactored to WelcomeConfiguration.Builder
Many classes and methods that weren't meant to be used outside of the library were made package-private.
The theme
methods were removed, the theme should be set in the AndroidManifest.
Builder page methods for specific layouts removed, the only method now is page(WelcomePage page)
. A class that extends WelcomePage
was created for each layout included in the library. The background color is no longer set by a parameter of the builder method, it is now a method of WelcomePage
.
For example, instead of
.titlePage(R.drawable.photo, "Title", R.color.red)
you would now use
.page(new TitlePage(R.drawable.photo, "Title").background(R.color.red))
WelcomeFragmentHolder
is gone, along with the builder method that used it. Use FragmentWelcomePage
now:
.page(new FragmentWelcomePage() {
@Override
protected Fragment fragment() {
return new YourFragment();
}
})
A fade animation was added to the ViewPager indicator, and it is now the default. The animated
style attribute was renamed to animation
, and the valid values are none
, slide
, and fade
Most resources other than WelcomeScreenTheme and its child themes were marked as private, and were renamed with the prefix wel_
.
The ViewPager variable viewPager
is now accessible in subclasses, so that you can do things like use a custom PageTransformer
.