|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface GridViewPager.OnPageChangeListener
Callback interface for responding to changing state of the selected page.
| Method Summary | |
|---|---|
void |
onPageScrolled(int row,
int column,
float rowOffset,
float columnOffset,
int rowOffsetPixels,
int columnOffsetPixels)
This method will be invoked when the current page is scrolled, either as part of a programmatically initiated smooth scroll or a user initiated touch scroll. |
void |
onPageScrollStateChanged(int state)
Called when the scroll state changes. |
void |
onPageSelected(int row,
int column)
This method will be invoked when a new page becomes selected. |
| Method Detail |
|---|
void onPageScrolled(int row,
int column,
float rowOffset,
float columnOffset,
int rowOffsetPixels,
int columnOffsetPixels)
row - Vertical position index of the new selected page row position+1 will be
visible if positionOffset is nonzerocolumn - Horizontal position index of the new selected pagerowOffset - Value from [0, 1) indicating the offset from the rowrowOffset - Value from [0, 1) indicating the offset from the columnrowOffsetPixels - Value in pixels indicating the offset from rowcolumnOffsetPixels - Value in pixels indicating the offset from column
void onPageSelected(int row,
int column)
row - Vertical position index of the new selected pagecolumn - Horizontal position index of the new selected pagevoid onPageScrollStateChanged(int state)
state - The new scroll state.GridViewPager.SCROLL_STATE_IDLE,
GridViewPager.SCROLL_STATE_DRAGGING,
GridViewPager.SCROLL_STATE_SETTLING
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||