public class FullscreenParallaxPage extends WelcomePage<FullscreenParallaxPage>
WelcomePage.OnChangeListener
index, isRtl, totalPages
Constructor and Description |
---|
FullscreenParallaxPage(int layoutResId)
A page that applies a parallax effect to the supplied layout.
|
Modifier and Type | Method and Description |
---|---|
FullscreenParallaxPage |
firstParallaxFactor(float factor)
The factor that the first item in the layout should move, relative to
the movement of the page.
|
Fragment |
fragment() |
FullscreenParallaxPage |
lastParallaxFactor(float factor)
The factor that the last item in the layout should move, relative to
the movement of the page.
|
FullscreenParallaxPage |
recursive(boolean recursive)
Whether or not the parallax effect should be recursive.
|
background, background, createFragment, getFragment, onPageScrolled, onPageScrollStateChanged, onPageSelected, setup
public FullscreenParallaxPage(@LayoutRes int layoutResId)
layoutResId
- The layout to showpublic FullscreenParallaxPage firstParallaxFactor(float factor)
factor
- The parallax factor for the first item in the layoutpublic FullscreenParallaxPage lastParallaxFactor(float factor)
factor
- The parallax factor for the first item in the layoutpublic FullscreenParallaxPage recursive(boolean recursive)
recursive
- Whether or not the effect should be recursive (travel through ViewGroups)public Fragment fragment()
fragment
in class WelcomePage<FullscreenParallaxPage>