Lines Matching refs:Page
62 // the min drag distance for a fling to register, to prevent random page shifts
73 // The page is moved more than halfway, automatically move to the next page on touch up.
76 // the velocity at which a fling gesture will cause us to snap to the next page
164 // to switch to a new page
266 * Returns the index of the currently displayed page.
268 * @return The index of the currently displayed page.
287 * Updates the scroll of the current page immediately to its final scroll position. We use this
289 * the previous tab page.
298 * Sets the current page.
352 * Registers the specified listener on each page contained in this workspace.
396 // Don't bother scrolling if the page does not need to be moved
413 // We don't want to trigger a page end moving unless the page has settled
419 // Notify the user when the page changes
452 * each page to have the same width.
521 View page = (View) getPageAt(i);
522 page.setX(page.getX() + delta);
555 // Also, the page offset has changed (since the pages are now smaller);
556 // update the page offset, but again preserving absolute X and Y coordinates
580 // Calculate the variable page spacing if necessary
777 int page = indexToPage(indexOfChild(child));
778 if (page != mCurrentPage || !mScroller.isFinished()) {
779 snapToPage(page);
834 * pass that along if it's on the current page.
836 * This happens when live folders requery, and if they're off page, they
837 * end up calling requestFocus, which pulls it on page.
875 * Return true if a tap at (x, y) should trigger a flip to the previous page.
882 * Return true if a tap at (x, y) should trigger a flip to the next page.
955 // to scroll the current page
1058 protected float getScrollProgress(int screenCenter, View v, int page) {
1062 int delta = screenCenter - (getChildOffset(page) -
1063 getRelativeChildOffset(page) + halfScreenSize);
1071 // This curve determines how the effect of scrolling over the limits of the page dimishes
1218 // In the case that the page is moved far to one direction and then is flung
1220 // just return to the starting page, or if we should skip one further.
1246 // we can just page
1256 // we can just page
1293 // Handle mouse (or ext. device) by shifting the page depending on the scroll
1355 int page = indexToPage(indexOfChild(child));
1356 if (page >= 0 && page != getCurrentPage() && !isInTouchMode()) {
1357 snapToPage(page);
1416 // We want the duration of the page snap animation to be influenced by the distance that
1438 // If the velocity is low enough, then treat this more as an automatic page advance
1447 // duration as a function of the distance the page needs to travel.
1455 // we want the page's snap velocity to approximately match the velocity at which the
1583 protected void loadAssociatedPages(int page) {
1584 loadAssociatedPages(page, false);
1586 protected void loadAssociatedPages(int page, boolean immediateAndOnly) {
1589 if (page < count) {
1590 int lowerPageBound = getAssociatedLowerPageBound(page);
1591 int upperPageBound = getAssociatedUpperPageBound(page);
1595 if ((i != page) && immediateAndOnly) {
1598 Page layout = (Page) getPageAt(i);
1602 syncPageItems(i, (i == page) && immediateAndOnly);
1616 protected int getAssociatedLowerPageBound(int page) {
1617 return Math.max(0, page - 1);
1619 protected int getAssociatedUpperPageBound(int page) {
1621 return Math.min(page + 1, count - 1);
1648 Page layout = (Page) getPageAt(i);
1668 Page layout = (Page) getPageAt(i);
1693 * guaranteed that syncPageItems() will be called for a particular page before it is shown,
1694 * and therefore, individual page items do not need to be updated in this method.
1699 * This method is called to synchronize the items that are on a particular page. If views on
1700 * the page can be reused, then they should be updated within this method.
1702 public abstract void syncPageItems(int page, boolean immediate);
1728 // Set a new page as the current page if necessary
1905 int page = (mNextPage != INVALID_PAGE) ? mNextPage : mCurrentPage;
1907 page + 1, getChildCount());