public class WelcomeTitleFragment extends Fragment implements WelcomePage.OnChangeListener
newInstance(int, java.lang.String, boolean, java.lang.String, int) factory method to
create an instance of this fragment.| Constructor and Description |
|---|
WelcomeTitleFragment() |
| Modifier and Type | Method and Description |
|---|---|
static WelcomeTitleFragment |
newInstance(int resId,
java.lang.String title,
boolean showParallaxAnim,
java.lang.String typefacePath,
int titleColor)
Use this factory method to create a new instance of
this fragment using the provided parameters.
|
android.view.View |
onCreateView(android.view.LayoutInflater inflater,
android.view.ViewGroup container,
android.os.Bundle savedInstanceState) |
void |
onViewCreated(android.view.View view,
android.os.Bundle savedInstanceState) |
void |
onWelcomeScreenPageScrolled(int pageIndex,
float offset,
int offsetPixels)
Called when this page is coming into view
|
void |
onWelcomeScreenPageScrollStateChanged(int pageIndex,
int state)
Called when the scroll state of the ViewPager changes
|
void |
onWelcomeScreenPageSelected(int pageIndex,
int selectedPageIndex)
Called when the selected page changes
|
public static WelcomeTitleFragment newInstance(@DrawableRes int resId, java.lang.String title, boolean showParallaxAnim, @Nullable java.lang.String typefacePath, int titleColor)
public android.view.View onCreateView(android.view.LayoutInflater inflater,
android.view.ViewGroup container,
android.os.Bundle savedInstanceState)
public void onViewCreated(android.view.View view,
android.os.Bundle savedInstanceState)
public void onWelcomeScreenPageScrolled(int pageIndex,
float offset,
int offsetPixels)
WelcomePage.OnChangeListeneronWelcomeScreenPageScrolled in interface WelcomePage.OnChangeListenerpageIndex - The position index of this pageoffset - The % offset of this page, negative if page is off the screen on the right, positive if off on the leftoffsetPixels - The offset of this page in pixels, negative if page is off the screen on the right, positive if off on the leftpublic void onWelcomeScreenPageSelected(int pageIndex,
int selectedPageIndex)
WelcomePage.OnChangeListeneronWelcomeScreenPageSelected in interface WelcomePage.OnChangeListenerpageIndex - The position index of this pageselectedPageIndex - The index of the page that was selectedpublic void onWelcomeScreenPageScrollStateChanged(int pageIndex,
int state)
WelcomePage.OnChangeListeneronWelcomeScreenPageScrollStateChanged in interface WelcomePage.OnChangeListenerpageIndex - The position index of this pagestate - The new scroll state