T
- needed for method chaining of inherited methods in subclassespublic abstract class WelcomePage<T extends WelcomePage>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
WelcomePage.OnChangeListener
Interface to be implemented by fragments that are part of a WelcomeActivity
|
Modifier and Type | Field and Description |
---|---|
protected int |
index |
protected boolean |
isRtl |
protected int |
totalPages |
Constructor and Description |
---|
WelcomePage() |
Modifier and Type | Method and Description |
---|---|
T |
background(BackgroundColor backgroundColor) |
T |
background(int colorResId) |
Fragment |
createFragment() |
protected abstract Fragment |
fragment() |
Fragment |
getFragment() |
void |
onPageScrolled(int position,
float positionOffset,
int positionOffsetPixels) |
void |
onPageScrollStateChanged(int state) |
void |
onPageSelected(int position) |
void |
setup(WelcomeConfiguration config) |
protected int index
protected boolean isRtl
protected int totalPages
public Fragment getFragment()
public Fragment createFragment()
protected abstract Fragment fragment()
public T background(@ColorRes int colorResId)
public T background(BackgroundColor backgroundColor)
public void setup(WelcomeConfiguration config)
public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels)
public void onPageSelected(int position)
public void onPageScrollStateChanged(int state)