Lines Matching defs:page

75     // the min drag distance for a fling to register, to prevent random page shifts
86 // The page is moved more than halfway, automatically move to the next page on touch up.
195 // to switch to a new page
237 // The runnable that settles the page after snapToPage and animateDragViewToOriginalPosition
342 // Hook up the page indicator
373 // Unhook the page indicator
481 * Returns the index of the currently displayed page.
483 * @return The index of the currently displayed page.
506 * Updates the scroll of the current page immediately to its final scroll position. We use this
508 * the previous tab page.
511 // If the current page is invalid, just reset the scroll position to zero
537 * Sets the current page.
542 // We need to clean up the next page here to avoid computeScrollHelper from
543 // updating current page on the pass.
559 * The restore page will be set in place of the current page at the next (likely first)
571 // Update the page indicator (when we aren't reordering)
603 * Registers the specified listener on each page contained in this workspace.
694 // Don't bother scrolling if the page does not need to be moved
717 // We don't want to trigger a page end moving unless the page has settled
727 // Notify the user when the page changes
763 public void addFullScreenPage(View page) {
766 super.addView(page, 0, lp);
818 * each page to have the same width.
882 // Calculate the variable page spacing if necessary
884 // The gap between pages in the PagedView should be equal to the gap from the page
887 // of the left/right gap and use that as the gap between each page.
1026 // Update the page indicator, we don't update the page indicator as we
1051 // Update the page indicator, we don't update the page indicator as we
1081 // Update the page indicator, we don't update the page indicator as we
1204 int page = indexToPage(indexOfChild(child));
1205 if (page != mCurrentPage || !mScroller.isFinished()) {
1206 snapToPage(page);
1263 * pass that along if it's on the current page.
1265 * This happens when live folders requery, and if they're off page, they
1266 * end up calling requestFocus, which pulls it on page.
1304 * Return true if a tap at (x, y) should trigger a flip to the previous page.
1316 * Return true if a tap at (x, y) should trigger a flip to the next page.
1413 // to scroll the current page
1503 protected float getBoundedScrollProgress(int screenCenter, View v, int page) {
1509 return getScrollProgress(screenCenter, v, page);
1512 protected float getScrollProgress(int screenCenter, View v, int page) {
1516 int delta = screenCenter - (getScrollForPage(page) + halfScreenSize);
1545 // This curve determines how the effect of scrolling over the limits of the page dimishes
1666 View page = getPageAt(i);
1667 int pageX = (int) (page.getLeft() + page.getMeasuredWidth() / 2);
1761 // Find the closest page to the touch point
1787 // Setup the scroll to the correct page before we swap the views
1860 // In the case that the page is moved far to one direction and then is flung
1862 // just return to the starting page, or if we should skip one further.
1890 // we can just page
1913 // we can just page
1950 // Remove the callback to wait for the side page hover timeout
1994 // Handle mouse (or ext. device) by shifting the page depending on the scroll
2057 int page = indexToPage(indexOfChild(child));
2058 if (page >= 0 && page != getCurrentPage() && !isInTouchMode()) {
2059 snapToPage(page);
2112 // We want the duration of the page snap animation to be influenced by the distance that
2131 // If the velocity is low enough, then treat this more as an automatic page advance
2140 // duration as a function of the distance the page needs to travel.
2148 // we want the page's snap velocity to approximately match the velocity at which the
2291 protected void loadAssociatedPages(int page) {
2292 loadAssociatedPages(page, false);
2294 protected void loadAssociatedPages(int page, boolean immediateAndOnly) {
2297 if (page < count) {
2298 int lowerPageBound = getAssociatedLowerPageBound(page);
2299 int upperPageBound = getAssociatedUpperPageBound(page);
2314 if ((i != page) && immediateAndOnly) {
2319 syncPageItems(i, (i == page) && immediateAndOnly);
2328 protected int getAssociatedLowerPageBound(int page) {
2329 return Math.max(0, page - 1);
2331 protected int getAssociatedUpperPageBound(int page) {
2333 return Math.min(page + 1, count - 1);
2339 * guaranteed that syncPageItems() will be called for a particular page before it is shown,
2340 * and therefore, individual page items do not need to be updated in this method.
2345 * This method is called to synchronize the items that are on a particular page. If views on
2346 * the page can be reused, then they should be updated within this method.
2348 public abstract void syncPageItems(int page, boolean immediate);
2374 // Set a new page as the current page if necessary
2391 // If the page is moving, then snap it to the final position to ensure we don't get
2496 // Snap to the current page
2585 // Setup the scroll to the correct page before we swap the views
2604 // Simulate the page being offscreen with the page spacing