public class Page
extends Fragment
IntroActivity. Each page stores a color it would prefer to
have drawn behind it when displayed, which allows the background color of the hosting
IntroActivity to be transitioned as its pages are scrolled. Subclass this class to define the
appearance and behaviour of your pages. To disable this behaviour, set the actually background
color as usual.| Constructor and Description |
|---|
Page()
Required default empty constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getDesiredBackgroundColor()
Returns the color this Page would prefer to have drawn behind it when displayed.
|
static Page |
newInstance() |
void |
setDesiredBackgroundColor(int color)
Sets the color this Page would prefer to have drawn behind it when displayed.
|
public static Page newInstance()
public void setDesiredBackgroundColor(int color)
color - the desired background colorpublic int getDesiredBackgroundColor()
setDesiredBackgroundColor(int), then transparent (0x00000000)
is returned.