GridViewPager Sample
GridViewPager
Welcome!
About
Content is organized into multiple pages. Swipe
between cards to view other content.
Cards
Each page is created using a CardFragment. A
layout is placed inside the card and the rest is handled
automatically.
Expansion
By default, each card will grow taller to
accommodate extra content. Tall cards can be scrolled through
like any scrollable view. The maximum height is controlled by
setExpansionFactor() with a default of 10 pages. After that
you\'ll notice a faded edge to indicate there is more. Expansion
can be disabled completely using setExpansionEnabled(false).
With this, the content will be clipped if it\'s taller than one
page.
Backgrounds
Backgrounds are supplied by the adapter\'s
getBackground method. Parallax and crossfade effects are applied
automatically.
Columns
When moving between rows, the pager always
returns to column 0. This is adjustable in the adapter. See
method getCurrentColumnForRow().
Dismiss
To exit the application, swipe from left to
right.