Home | History | Annotate | Download | only in launcher3

Lines Matching defs:page

56 interface Page {
73 // the min drag distance for a fling to register, to prevent random page shifts
84 // The page is moved more than halfway, automatically move to the next page on touch up.
195 // to switch to a new page
210 // Page Indicator
237 // The runnable that settles the page after snapToPage and animateDragViewToOriginalPosition
340 // Hook up the page indicator
371 // Unhook the page indicator
453 * Add a page change listener which will be called when a page is _finished_ listening.
483 * Returns the index of the currently displayed page.
485 * @return The index of the currently displayed page.
508 * Updates the scroll of the current page immediately to its final scroll position. We use this
510 * the previous tab page.
513 // If the current page is invalid, just reset the scroll position to zero
536 // We need to clean up the next page here to avoid computeScrollHelper from
537 // updating current page on the pass.
545 // We need to clean up the next page here to avoid computeScrollHelper from
546 // updating current page on the pass.
551 * Sets the current page.
570 * The restore page will be set in place of the current page at the next (likely first)
581 * Should be called whenever the page changes. In the case of a scroll, we wait until the page
593 // Update the page indicator (when we aren't reordering)
625 * Registers the specified listener on each page contained in this workspace.
717 // Don't bother scrolling if the page does not need to be moved
740 // We don't want to trigger a page end moving unless the page has settled
750 // Notify the user when the page changes
786 public void addFullScreenPage(View page) {
789 super.addView(page, 0, lp);
841 * each page to have the same width.
965 // when they are not the current page.
1037 // Update the page indicator, we don't update the page indicator as we
1061 // Update the page indicator, we don't update the page indicator as we
1091 // Update the page indicator, we don't update the page indicator as we
1214 int page = indexToPage(indexOfChild(child));
1215 if (page != mCurrentPage || !mScroller.isFinished()) {
1216 snapToPage(page);
1273 * pass that along if it's on the current page.
1275 * This happens when live folders requery, and if they're off page, they
1276 * end up calling requestFocus, which pulls it on page.
1314 * Return true if a tap at (x, y) should trigger a flip to the previous page.
1325 * Return true if a tap at (x, y) should trigger a flip to the next page.
1425 // to scroll the current page
1515 protected float getBoundedScrollProgress(int screenCenter, View v, int page) {
1521 return getScrollProgress(screenCenter, v, page);
1524 protected float getScrollProgress(int screenCenter, View v, int page) {
1527 int delta = screenCenter - (getScrollForPage(page) + halfScreenSize);
1532 int adjacentPage = page + 1;
1534 adjacentPage = page - 1;
1540 totalDistance = Math.abs(getScrollForPage(adjacentPage) - getScrollForPage(page));
1576 // This curve determines how the effect of scrolling over the limits of the page dimishes
1691 View page = getPageAt(i);
1692 int pageX = (int) (page.getLeft() + page.getMeasuredWidth() / 2);
1786 // Find the closest page to the touch point
1812 // Setup the scroll to the correct page before we swap the views
1887 // In the case that the page is moved far to one direction and then is flung
1889 // just return to the starting page, or if we should skip one further.
1932 // we can just page
1942 // we can just page
1979 // Remove the callback to wait for the side page hover timeout
2023 // Handle mouse (or ext. device) by shifting the page depending on the scroll
2086 int page = indexToPage(indexOfChild(child));
2087 if (page >= 0 && page != getCurrentPage() && !isInTouchMode()) {
2088 snapToPage(page);
2141 // We want the duration of the page snap animation to be influenced by the distance that
2160 // If the velocity is low enough, then treat this more as an automatic page advance
2169 // duration as a function of the distance the page needs to travel.
2177 // we want the page's snap velocity to approximately match the velocity at which the
2333 protected void loadAssociatedPages(int page) {
2334 loadAssociatedPages(page, false);
2336 protected void loadAssociatedPages(int page, boolean immediateAndOnly) {
2339 if (page < count) {
2340 int lowerPageBound = getAssociatedLowerPageBound(page);
2341 int upperPageBound = getAssociatedUpperPageBound(page);
2346 Page layout = (Page) getPageAt(i);
2356 if ((i != page) && immediateAndOnly) {
2361 syncPageItems(i, (i == page) && immediateAndOnly);
2370 protected int getAssociatedLowerPageBound(int page) {
2371 return Math.max(0, page - 1);
2373 protected int getAssociatedUpperPageBound(int page) {
2375 return Math.min(page + 1, count - 1);
2381 * guaranteed that syncPageItems() will be called for a particular page before it is shown,
2382 * and therefore, individual page items do not need to be updated in this method.
2387 * This method is called to synchronize the items that are on a particular page. If views on
2388 * the page can be reused, then they should be updated within this method.
2390 public abstract void syncPageItems(int page, boolean immediate);
2415 // Set a new page as the current page if necessary
2432 // If the page is moving, then snap it to the final position to ensure we don't get
2538 // Snap to the current page
2627 // Setup the scroll to the correct page before we swap the views
2646 // Simulate the page being offscreen with the page spacing