summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/WorkspaceStateTransitionAnimation.java
Commit message (Collapse)AuthorAgeFilesLines
* Ensure we still build the hw layers when pulling up all apps.Winson2016-07-221-18/+8
| | | | Bug: 30310330 Change-Id: I0d9f2fe01230bdb333c098b5515fc196ac2da2dc
* Moving the QSB out of the cell layout to the Drag layerSunny Goyal2016-07-131-0/+28
| | | | | | | | 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
* Second workspace page icons should not show up when all apps is shown in ↵Hyunyoung Song2016-07-061-1/+2
| | | | | | | | | | | landscape. b/29931405 > Also some method names to setTranslation -> setTranslationAndAlpha to match its implementation. Change-Id: Icb6ec5df8a267a9024803c70a694ea9b76e5e34d
* Fix hotseat flickerHyunyoung Song2016-06-301-1/+2
| | | | | | b/29648104 Change-Id: I74eea09ab5c4d03c0df3b4a82c7636299edf4d32
* Fixing alpha of workspace components being changed at too many placesSunny Goyal2016-06-271-86/+25
| | | | | | | | | | | > Hotseat alpha is changed by all-apps controller, workspaceStateTransition and overlay transition. Created a 3 state alpha for hotseat and pageIndicator > Simplified the page-background and alpha animation during state transition by moving the code in the same if block > Disabling partial page fading when pull-up all apps is enabled. This fixes the bug when pressing home with all-apps opened causes other pages to disappear. Change-Id: I4a75b89af12b48e9fbc49514e641fd424d07199c
* All apps pull up workHyunyoung Song2016-06-211-2/+18
| | | | | | | | | | | | | | | | b/28917826 b/29469966 b/29542376 - Move state transition to when the finger is lifted and not when the view settles. - Refactor the vertical pull detector to use bit operation to define which direction scroll to allow. - Fixed many issues regarding screen rotation - Fixes issue where slowly sliding the all apps goes into overview mode - Fixes issue where quick slide up leads to animation starting from middle Change-Id: I2384a0fcc5550e17359a044ef506bcc66507da5f
* Fixing workspace transition stateHyunyoung Song2016-06-201-1/+1
| | | | Change-Id: I394d587aa84aefa174220380a6dfb25bad133fde
* UI fixes to All apps pull up workHyunyoung Song2016-06-151-1/+2
| | | | | | | | | | | | | | | | | b/28917826 - nav bar change to light when top of the all apps container passes y mid point of the status bar - apps search edit box change when top of the all apps passes the bottom of nav bar - Restrict pull up to work only if the ACTION_DOWN event started from the hotseat. - Landscape: reverted old padding and margin. Only the interaction is different. - Tuning of the motion spec - Animation duration respects fling speed more agressively. - and many more small bugs... Change-Id: Icde4093c41eeab8c9c6d9dc8b7d57adc3b171349
* Removing the SearchDropTarget bar as it no longer contains the QSBSunny Goyal2016-06-061-2/+1
| | | | | | | | | | | | > Renaming it to simply DropTargetBar > Moving AppInfo to the top bar as well > The workspace pages will extend to the top edge (minus some padding). Since the QSB is no longer displayed on top of every page, there is no reason to reserve the space. > In spring-loaded mode, the workspace cell layout will scale enough to make room for the drop target bar at the top Change-Id: I2baf607310335dd576c9d9fcbb75ab708f47ac03
* Making page indicator an abstract class and implementing some common methods.Sunny Goyal2016-05-201-2/+1
| | | | Change-Id: I06613428c54f1f086090580db8242cf81f7fb128
* Add more null checks for page indicators.Tony Wickham2016-05-191-1/+2
| | | | Change-Id: Id86d4827c9079abfb236f956e531f0e29edfc54e
* Add PageIndicator interface and custom PageIndicatorLine view.Tony Wickham2016-05-171-2/+2
| | | | | | | | | | | | | - 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
* Tweak spring-loaded workspace.Tony Wickham2016-02-081-6/+11
| | | | | | | | | | | | | - No page indicators in spring-loaded mode - Don’t move workspace up as high - Scale workspace at 90% instead of 80% on phones - Increase speed of workspace -> spring-loaded -> workspace - Widgets were being scaled down twice when dragging from widget picker - Don't scale up icons when dragging (scaling other stuff down is enough) - Make scrim less dark and panels more transparent - Thin white border around page instead of highlight when hovering Change-Id: I963e91c20d4c0340480d165e0f3b8064783c0cb2
* Added AppInfoDropTargetBar to spring loaded workspace.Tony Wickham2015-09-151-2/+7
| | | | Change-Id: Ieedc68eba9a5934ab30d6d546d8a837274491064
* Moving drag-drop related code into a separate package.Vadim Tryshev2015-08-201-0/+1
| | | | | | | | | This is per an earlier CR comment "we should probably move all this code to its own package (launcher3.dragndrop) in a separate cl". I'm not moving DragSource because it's referred from gsa code. Bug: 22609426 Change-Id: Ia7204dab99c0c395c66b77143a2d60411153f5f3
* resolved conflicts for merge of 0ad33066 to ub-launcher3-masterWinson2015-08-071-71/+4
|\ | | | | | | Change-Id: I5dbbaaf9fb03ed3003174154ea7d7dbae9048a70
| * Refactoring search bar animations.Winson Chung2015-08-051-73/+4
| | | | | | | | | | | | | | | | | | | | - This refactoring ensures that LauncherStateTransition does not do its own animation on the QSB, and that all animations to the SearchDropTargetBar go through its own animators. Bug: 22515084 Change-Id: Ia7d13c44d861eac7517076b52a9651a90911ed0a
* | Several animation calls cleanupSunny Goyal2015-07-311-3/+1
| | | | | | | | | | | | | | > Using View property instead of strings to avoid extra reflection step > Using ViewPropertyAnimator when several properties are being animated Change-Id: I41625643b38b70bac11e2c81d18058ec878d73bd
* | am 946609f0: Merge "Fixing overview mode scale calculations." into ↵Winson Chung2015-07-281-1/+2
|\| | | | | | | | | | | | | ub-launcher3-burnaby * commit '946609f0ea70e1361dbe979af0e054d4c18b929b': Fixing overview mode scale calculations.
| * Fixing overview mode scale calculations.Winson Chung2015-07-101-1/+2
| | | | | | | | | | | | | | - Making the overview scale apply just like the spring loaded scale factor - Tweaking overview scale to make it not so small Change-Id: If93bac08609b0cfd9c9d9f8f6057498957378b56
* | Fixing screen jump when going to spring_loaded mode in rtlSunny Goyal2015-07-091-11/+8
|/ | | | | | | > Removing call to snapToScreen when changing state > Marking adjacent pages visible in overview and spring_loaded mode, so that they get drawn atleast once. Change-Id: If305e0d4cfa63bac03f301d69017da55f89155bd
* Code cleanup, WorkspaceStateTransitionAnimationHyunyoung Song2015-06-231-21/+15
| | | | Change-Id: I6b82f705f8dfddc507ddd66d5fd8a499cd6f58fd
* Add workspace scrim animation to the state transition to reduce jankiness.Hyunyoung Song2015-06-191-17/+9
| | | | | | | | | b/20956087 Note: Will work on creating a separate view for the scrim animation rather than the drag layer on a separate CL. Change-Id: Idaced5c6867abe3ed9afa984c885023676b3a141
* Refactoring all apps search to support external search bar.Winson Chung2015-06-151-91/+166
| | | | | | | | | | | | | | | | | | | | | - Adding support for an external search bar that can be used to search a container view. This adds a new interface AllAppsSearchController which manages the external search bar. Each controller will have its own search implementation which means that we no longer need a common AppSearchManager interface. - Removing elevation controller as we no longer have a builtin search bar in all apps - Refactoring container view insets so that they behave the same in all containers. - Refactoring apps view to ensure that we only update the number of columns with the available width - Cleaning up LauncherCallbacks interface Bug: 20127840 Bug: 21494973 Change-Id: I710b8e18196961d77d8a29f0c345531d480936fe
* Code cleanupSunny Goyal2015-06-051-8/+3
| | | | | | | | > Removing obsolete logging > Removing unused methods > Removing resource leak warning due to non-static handler class in launcher Change-Id: Ic38cc8aea82899b0b5ee3235f04e5964e49245fb
* Moving all apps code into sub package.Winson Chung2015-05-221-2/+2
| | | | | | | - Renaming resources, dimens, etc to be more consistent - Removing old AppsCustomize resources and other unused code Change-Id: I15ce35e7cb7a9b9344fc7103963e4e4c9e45d89a
* Creating landscape and portrait device profiles at app initializationSunny Goyal2015-05-221-2/+1
| | | | Change-Id: Ide9d007adc36b348e19b05cdf49e87f8b02db60e
* Refactoring DeviceProfileAdam Cohen2015-05-211-1/+1
| | | | | | | | | | | | | | | | | | | | -> Pulling out the parts of device profile which can (and need to be) initialized and accessed without access to an Activity context, ie. the invariant bits. -> The invariant bits are stored in InvariantDeviceProfile which is initialized statically from LauncherAppState. -> The DeviceProfile contains the Activity context-dependent bits, and we will create one of these for each Activity instance, and this instance is accessed through the Launcher activity. -> It's possible that we can continue to refactor this such that all appropriate dimensions can be computed without an Activity context (by only specifying orientation). This would be an extension of this CL and allow us to know exactly how launcher will look in both orientations from any context. Sets the stage for some improvements around b/19514688 Change-Id: Ia7daccf14d8ca2b9cb340b8780b684769e9f1892
* Accessibility: Page re-ordering in overview modeSunny Goyal2015-05-061-2/+15
| | | | Change-Id: I5fc0ad326a63b6768cb1fae55ee6e05a9fc2b659
* Refactoring to single path for overview mode.Winson Chung2015-04-211-0/+519
Change-Id: I590a813c6f031342d75c3a6c3e9c9afda1808f2e