summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/PagedView.java
Commit message (Collapse)AuthorAgeFilesLines
* Removing wrapper around ViewPropertyAnimator, and using ObjectAnimatorSunny Goyal2017-02-161-5/+7
| | | | | | | instead Bug: 35218222 Change-Id: Ic714cf7d20989cb45f07712e8a6f6659d0e3f30d
* Fixing onPageBeginTransition not being called when scrolling overlaySunny Goyal2017-01-041-1/+2
| | | | | Bug: 33693546 Change-Id: If212a196648fbb2c725ca4800a157ec24f278ca8
* Merge "Fixes a bug where the user ends in freescroll state even for regular ↵Mario Bertschler2016-12-291-11/+9
|\ | | | | | | workspace mode." into ub-launcher3-master
| * Fixes a bug where the user ends in freescroll state even for regular ↵Mario Bertschler2016-12-291-11/+9
| | | | | | | | | | | | | | | | | | | | workspace mode. The bug happened while reordering pages in overview mode and clicking the back button. The fix is to check the precodition in enableFreeScroll if we are in a valid state for enabling freescroll (currently only overview mode). Bug: 33347786 Change-Id: Icc3005fd431569e2b9e3f52d2249de8ba8d13eab
* | Removing all compatibility code below LollipopSunny Goyal2016-12-161-6/+1
|/ | | | | Bug: 32745285 Change-Id: I62971908e3e4402941fab627bbdfd47be64473a3
* Don't add focusables when getDescendantFocusability is FOCUS_BLOCK_DESCENDANTS.Jon Miranda2016-10-271-0/+4
| | | | | Bug: 32315286 Change-Id: I6fc6600fc9cbf83f720d9e6e878735076cd52cf1
* Removing custom dispatchDraw logic and letting the system handleSunny Goyal2016-10-261-126/+29
| | | | | | | | | | | | | | selecting appropriate children for drawing. > System already skips children which are outside the bounds. Originally this logic was added because workspace layout is larger than the screen, and we need to selectivly skip more children. But over time we have added many special conditions and at present workspace actually draws more children than needed at any given time. > Fixing bug, where onBeginPageMoving was getting called during folder open Bug: 12116740 Change-Id: Idee18ee9cd9d348ebc4dfd82f4ff6df14e0d22d2
* resolve merge conflicts of 2fd0208 to ub-launcher3-masterTony Wickham2016-10-121-1/+1
|\ | | | | | | Change-Id: I20ad6eaace81786be080e28d6eb551908add6d90
| * Use Launcher.getLauncher(Context) instead of type-casting.Tony2016-10-071-1/+1
| | | | | | | | | | Bug: 32010039 Change-Id: Icb80d3e547a706740b84df2cb80f99e4a7f81c43
* | Code sanitizationHyunyoung Song2016-10-061-3/+3
| | | | | | | | | | | | - Removed bad method/class name typos Change-Id: Ie6900e9e3d9ce9b550d2a2442a5dac3f7050a573
* | Cleaning up restore instance state logicSunny Goyal2016-09-281-18/+1
|/ | | | | | | | Restore instance state is only used for first binding. But in case of restore, the binding happens synchronously, so there is not need to store the bundle in a global variable Change-Id: Ibc496bcd7c0d171056b8afc69f2c4d9a1270d40c
* Fixing overlay scroll state not getting reset properly whenSunny Goyal2016-08-121-0/+1
| | | | | | | scrolling is was cancelled Bug: 30834333 Change-Id: I3605cd2dd939057905d297b5a25ce8669d578125
* Moving the QSB out of the cell layout to the Drag layerSunny Goyal2016-07-131-11/+2
| | | | | | | | This allows better edge matching for the QSB. The QSB position is kept synchronized with the page scroll and all-apps transition. But its not visible in spring loaded and overview mode Change-Id: I4e6723607ea966ee672273a9ca67c792fd6b5661
* Updating page indicator content description to indicate click targetSunny Goyal2016-07-081-2/+6
| | | | | | | for apps list Bug: 29777235 Change-Id: Ia3dc20db7ec06455429389de5752b9bcfff15555
* Extend all apps pull up activation area to page indicator viewHyunyoung Song2016-06-271-1/+1
| | | | | | | b/29752599 Change-Id: I3ee5efefa98defbc8f386895753946efe79708b4 Background: page indicator's background is where the caret symbol is.
* Accessibility fixes and updatesSunny Goyal2016-06-221-31/+6
| | | | | | | | > Adding custom actions on the page indicator to go to overview mode > Disabling custom actions on the first page > Disabling 'move page left' on the second page Change-Id: Ib8154f70cb3f93e663a881357c6c46c33253887f
* Fixes to all apps pull up workHyunyoung Song2016-06-081-1/+1
| | | | | | | | | | | | | | | | | | | | b/28917826 - 2+ workspace page also slides up - pull up touch interaction doesn't trigger only when yslop > xslop - animation duration should be set independently when all apps button is used. - workspace state is correctly set (drag and drop from the trays work) - after lock screen, hotseat is positioned correctly - Remove initial jump when sliding up - Improved tuning on sliding - Alpha value set differently on backbround and content of all apps Still not fixed: - Landscape - Search edit text box styling - All apps scroll bar Change-Id: I817094b0f1ada5052ee604539459f556a99cadf1
* Allowing the first screen to expand to the screen edgeSunny Goyal2016-06-061-2/+11
| | | | | This allows the QSB to extend all the way to the edge Change-Id: I43c6e21e44fef7fffe6fb12b7afb95549b68679f
* Moving the QSB to the workspace grid.Sunny Goyal2016-05-271-2/+4
| | | | | | | | | | | | The QSB will only be resent on the first screen of the workspace covering the full width of the first row. If will not be movable. The first screen of the workspace will not be movable. The searchDropTargetBar no longer contains the QSB (it can be renamed in aseparate cl). Refactoring all QSB related logic by moving it to a custom view inflated only using xml. Change-Id: Icb4fd6eb855df1af15f685961c38351bf4fd4f4a
* Making page indicator an abstract class and implementing some common methods.Sunny Goyal2016-05-201-3/+3
| | | | Change-Id: I06613428c54f1f086090580db8242cf81f7fb128
* Updating the folder page indicator to be more like theSunny Goyal2016-05-181-22/+8
| | | | | | | | | framework page indicator (used in quick settings) The active page is indicated with the accent color. During scroll the active indicator expands to 2 dots corresponding to the visible pages. Change-Id: Iaf57836b642cf87e5eed98048ecca7dd8e7643a4
* Add PageIndicator interface and custom PageIndicatorLine view.Tony Wickham2016-05-171-9/+16
| | | | | | | | | | | | | - The current PageIndicator has been renamed to PageIndicatorDots and PageIndicatorMarker has been renamed to PageIndicatorDot. - PageIndicatorDots and PageIndicatorLine implement PageIndicator. - PageIndicatorLine uses scroll progress and number of pages to draw a line of the correct size and position. - All of these page indicator files are now in a pageindicators package. Bug: 27227498 Change-Id: I9230d2e0600ce583989bd31d0b0e252b148d15c2
* Update page when scrolling/flinging in free-scroll.Tony Wickham2016-05-121-5/+15
| | | | | Bug: 28054048 Change-Id: Ic22e7e717c3ead52dd6fb7495c37be3837e11030
* Removing some deprecated callbacksSunny Goyal2016-04-141-21/+0
| | | | Change-Id: I3361383fe19faa64d862bbf879edb8c09937dc6f
* Revert "Updating current page when changing the frescroll mode"Sunny Goyal2016-04-071-2/+0
| | | | | | This reverts commit debf81470dcb42b971d52d582d23a0d1da63d4a8. Change-Id: Ib5b60c21be2d112c6c6e453168cb5bf01a7bd971
* Updating current page when changing the frescroll modeSunny Goyal2016-04-061-0/+2
| | | | | Bug: 28054048 Change-Id: I081db915445b60f96607d4a0c30ffc8ab476fe24
* Remove scrim on highlighted spring-loaded panel.Tony Wickham2016-03-161-3/+9
| | | | | Bug: 27135377 Change-Id: I470955ed082a45ae7dc5f8fdd1f3decb2b573dbc
* Pinch to zoom out into overview mode.Tony Wickham2016-03-041-0/+2
| | | | | | | | | | | | | | | | | | There are 3 classes coordinating the gesture: PinchToOverviewListener, PinchThresholdManager, and PinchAnimationManager. - PTOL listens for the pinch gesture on DragLayer. - When a pinch is detected, the PTOL keeps track of the interpolated progress and passes it along to both the PTM and PAM. - The PTM uses the progress to determine whether a new threshold has been passed, and tells the PAM to animate it if so. - The PAM uses the progress to animate things like workspace scale throughout the pinch. - If the pinch ends early, the PTOL uses the last passed threshold to determine whether to animate to workspace or overview, and tells PAM to perform the animation at the same velocity as the pinch. Bug: 24414635 Change-Id: I9e53706c705f8b2982409bf7c223d8d0e9618bf0
* Merge "Fixing homescreen getting blank when returning from the overlay" into ↵Sunny Goyal2016-03-011-9/+14
|\ | | | | | | ub-launcher3-calgary
| * Fixing homescreen getting blank when returning from the overlaySunny Goyal2016-02-261-9/+14
| | | | | | | | Change-Id: Ie11b92cd59c90e71b9b58eeede742ef0c5b28380
* | Fixing scrollTo getting called even though the gesture was handled by an overlaySunny Goyal2016-02-291-1/+1
|/ | | | Change-Id: Ia46c4ef3db8a3ae4fa615625b7b983d7e461c797
* Adding overlay interaction supportSunny Goyal2016-02-251-5/+9
| | | | | | | > Sending unboundX to the overlay which is the total untranslated X and not just deltaX from last frame > Handling overlay callback and translating workspace accordingly Change-Id: I3bd8d9efac738e9ce131758f0e5ff1b9c1d6a8fc
* Refactor FolderIcon to separate the preview effect into it's own classAdam Cohen2016-02-121-3/+3
| | | | | | | -> Created com.android.launcher3.folder package to house most folder-related files (aside from the FolderInfo) which is more related to the model than the UI. Change-Id: I767063e1e4c775c01a799a3bede30cd94ac48ade
* Making some view properties exported.Sunny Goyal2016-02-091-0/+4
| | | | | | These will be visible in hierarchy viewer Change-Id: I940724a7f61d67b8502d77be203a94875bc92668
* resolve merge conflicts of 6362683acb to ub-launcher3-calgary.Sunny Goyal2016-01-271-17/+11
|\ | | | | | | Change-Id: Id48bf33912bf927121356a08b8501ee0070bfdc7
| * Removing unnecessary new object creation in dispatchDrawSunny Goyal2016-01-231-25/+13
| | | | | | | | | | | | | | dispatchDraw was calling getVisiblePages which in turn calls getDescendantCoordRelativeToParent and created multiple new abjects Change-Id: I401fec076183979d30dfdbbdc02a57bd79f3886d
* | Fixing custom content screen not aligned properly in landscapeSunny Goyal2016-01-121-1/+1
|\| | | | | | | | | | | | | am: ecdc24f6f6 * commit 'ecdc24f6f667319db56a16dd7d1efda16dfe662e': Fixing custom content screen not aligned properly in landscape
| * Fixing custom content screen not aligned properly in landscapeSunny Goyal2016-01-121-1/+1
| | | | | | | | | | Bug: 26413100 Change-Id: I1a111c9d2b0dfdfbc3cbd566e5784a1ed2bb6719
* | Preserving the open folder state across rotationSunny Goyal2015-12-081-14/+0
| | | | | | | | | | Bug: 24900496 Change-Id: Ie1318b82b497957b99603b11ec338dd50d51b962
* | Merge "Keeping the focus indicator on the widget view, while a child is ↵Sunny Goyal2015-12-011-2/+12
|\| | | | | | | | | | | | | | | | | focused" into ub-launcher3-burnaby-polish am: 093a58cc77 * commit '093a58cc776be2a3cd5aed9d14df9c78a35af052': Keeping the focus indicator on the widget view, while a child is focused
| * Merge "Keeping the focus indicator on the widget view, while a child is ↵Sunny Goyal2015-12-011-2/+12
| |\ | | | | | | | | | focused" into ub-launcher3-burnaby-polish
| | * Keeping the focus indicator on the widget view, while a child is focusedSunny Goyal2015-12-011-2/+12
| | | | | | | | | | | | | | | Bug: 25199581 Change-Id: Ie08d1438ae0c1b5d4fcaa4d642508c1b9db0f5d4
* | | Adding margin to Drag layer instead of checking for right insets at every placeSunny Goyal2015-12-011-8/+3
|\| | | | | | | | | | | | | | | | | | | | am: 9326461652 * commit '9326461652c36c2ddd888d1452cf7f075a391868': Adding margin to Drag layer instead of checking for right insets at every place
| * | Adding margin to Drag layer instead of checking for right insets at every placeSunny Goyal2015-12-011-8/+3
| |/ | | | | | | | | Bug: 25692432 Change-Id: I853f41a17c54b30b7772b9fd8556d9465de84752
* | Stop clearing focus when snapping to a new workspace page.Tony Wickham2015-11-031-5/+0
|\| | | | | | | | | | | | | am: 04e2c9ef56 * commit '04e2c9ef5663262fc9dd08ffc4b59fe305a017f3': Stop clearing focus when snapping to a new workspace page.
| * Stop clearing focus when snapping to a new workspace page.Tony Wickham2015-10-301-5/+0
| | | | | | | | | | | | | | | | | | Clearing the focus was causing the first child in the new page to immediately take focus, which caused FocusIndicatorView jank when using a keyboard. Bug: 25256728 Change-Id: I5ab31ebc3fe370d7ac9e9792b30dab3467023738
* | am 21d89fbf: Merge "Fixing overscroll effect when the navigation bar is ↵Sunny Goyal2015-10-071-3/+9
|\| | | | | | | | | | | | | opaque" into ub-launcher3-burnaby-polish * commit '21d89fbf8c444c64a4c85d25a25bbe3b79719de9': Fixing overscroll effect when the navigation bar is opaque
| * Fixing overscroll effect when the navigation bar is opaqueSunny Goyal2015-09-221-3/+9
| | | | | | | | | | | | | | | | | | | | The navigation bar is opaque on mobile devices in landscape mode. Launcher should ignore the right insets and draw the edge effect appropriately. Also draw the black bar under the navigation bar, just in case we assume it to be opaque, but it was not actually opaque. Bug: 18526657 Change-Id: I1d49dcb82b8a5ee25009bc738cd9b8c0c5c88263
* | When placing a widget, go to a page with enough space.Tony Wickham2015-09-091-1/+1
| | | | | | | | | | | | | | | | | | | | The search for this page starts at the current one and continues to the right (on LTR) until a page is found that can accomodate the widget, taking possible resizing and reordering into account. Bug: 11338870 Change-Id: I2e9a310eb8f74024dca9150f55a525e1309c2f07
* | Make sure all overlay panels are visible as user free scrolls.Tony Wickham2015-09-091-8/+10
| | | | | | | | | | | | | | | | | | | | | | | | Previously there was a workaround to ensure that adjacent panels were visible while in the overview or spring-loaded states, but it incorrectly kept only those original pages visible even while the user scrolled to other pages. So now we only use the workaround when first entering the overview or spring-loaded states, and then fall back to the default getVisiblePages() implementation in PageView when in free scoll mode. Bug: 23766408 Change-Id: I692ec00b9cd6d7889c374aee41b85abd0a5d8d3c