Lines Matching defs:page
58 // the min drag distance for a fling to register, to prevent random page shifts
70 // The page is moved more than halfway, automatically move to the next page on touch up.
162 // to switch to a new page
278 * Returns the index of the currently displayed page.
280 * @return The index of the currently displayed page.
302 * Updates the scroll of the current page immediately to its final scroll position. We use this
304 * the previous tab page.
307 // If the current page is invalid, just reset the scroll position to zero
338 * Sets the current page.
391 * Registers the specified listener on each page contained in this workspace.
446 // Don't bother scrolling if the page does not need to be moved
465 // We don't want to trigger a page end moving unless the page has settled
471 // Notify the user when the page changes
514 * each page to have the same width.
571 // Calculate the variable page spacing if necessary
573 // The gap between pages in the PagedView should be equal to the gap from the page
576 // of the left/right gap and use that as the gap between each page.
600 View page = (View) getPageAt(i);
601 page.setX(page.getX() + delta);
634 // Also, the page offset has changed (since the pages are now smaller);
635 // update the page offset, but again preserving absolute X and Y coordinates
862 int page = indexToPage(indexOfChild(child));
863 if (page != mCurrentPage || !mScroller.isFinished()) {
864 snapToPage(page);
921 * pass that along if it's on the current page.
923 * This happens when live folders requery, and if they're off page, they
924 * end up calling requestFocus, which pulls it on page.
962 * Return true if a tap at (x, y) should trigger a flip to the previous page.
973 * Return true if a tap at (x, y) should trigger a flip to the next page.
1051 // to scroll the current page
1141 protected float getScrollProgress(int screenCenter, View v, int page) {
1145 int delta = screenCenter - (getChildOffset(page) -
1146 getRelativeChildOffset(page) + halfScreenSize);
1154 // This curve determines how the effect of scrolling over the limits of the page dimishes
1300 // In the case that the page is moved far to one direction and then is flung
1302 // just return to the starting page, or if we should skip one further.
1331 // we can just page
1341 // we can just page
1378 // Handle mouse (or ext. device) by shifting the page depending on the scroll
1442 int page = indexToPage(indexOfChild(child));
1443 if (page >= 0 && page != getCurrentPage() && !isInTouchMode()) {
1444 snapToPage(page);
1507 // We want the duration of the page snap animation to be influenced by the distance that
1529 // If the velocity is low enough, then treat this more as an automatic page advance
1538 // duration as a function of the distance the page needs to travel.
1546 // we want the page's snap velocity to approximately match the velocity at which the
1675 protected void loadAssociatedPages(int page) {
1676 loadAssociatedPages(page, false);
1678 protected void loadAssociatedPages(int page, boolean immediateAndOnly) {
1681 if (page < count) {
1682 int lowerPageBound = getAssociatedLowerPageBound(page);
1683 int upperPageBound = getAssociatedUpperPageBound(page);
1688 Page layout = (Page) getPageAt(i);
1698 if ((i != page) && immediateAndOnly) {
1703 syncPageItems(i, (i == page) && immediateAndOnly);
1712 protected int getAssociatedLowerPageBound(int page) {
1713 return Math.max(0, page - 1);
1715 protected int getAssociatedUpperPageBound(int page) {
1717 return Math.min(page + 1, count - 1);
1723 * guaranteed that syncPageItems() will be called for a particular page before it is shown,
1724 * and therefore, individual page items do not need to be updated in this method.
1729 * This method is called to synchronize the items that are on a particular page. If views on
1730 * the page can be reused, then they should be updated within this method.
1732 public abstract void syncPageItems(int page, boolean immediate);
1758 // Set a new page as the current page if necessary