summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/CellLayout.java
Commit message (Collapse)AuthorAgeFilesLines
* Using view elevation for shadow during click feedback instead ofSunny Goyal2017-11-081-10/+1
| | | | | | creating a shadow bitmap Change-Id: I331186664c3c448596af3172e0e080921a6a1908
* Consolidating various interpolatorsSunny Goyal2017-10-261-2/+4
| | | | Change-Id: I9588eee3552001b162a1e8d5ccefcfb44d221880
* Removing state definition from LauncherSunny Goyal2017-10-181-2/+1
| | | | | | | State is only maintained is workspace and is used for all the UI Bug: 67678570 Change-Id: Ie3cce5a1f4ada3913d0480f7918c27460dacbd34
* Launcher state management cleanupSunny Goyal2017-10-171-13/+4
| | | | | | | | | | > Removing Widgets and related states > Fixing different durations being used when opening/closing all-apps > Removing some unnecessary object allocations when changing state without animation > Differentiating widget bootm sheel and full sheet in logs Bug: 67678570 Change-Id: Ic169528736d04ee0b38564b4f96595ba066eabda
* [automerger] Fix bug where labels were visible in hotseat / invisible in ↵Android Build Merger (Role)2017-10-051-1/+1
|\ | | | | | | | | | | workspace. am: f1eae802b5 Change-Id: If4155798256c6b806f6f89ef441df6e0f49b4e39
| * Fix bug where labels were visible in hotseat / invisible in workspace.Jon Miranda2017-10-041-1/+1
| | | | | | | | | | Bug: 67364623 Change-Id: Ib66a5cdaca767fd8546f4ffd02d590981bb8135a
* | Removing buildLayer call on workspace pages.Sunny Goyal2017-10-021-4/+0
| | | | | | | | | | | | | | | | | | > buildLayer was followed by setLayerType(NONE) which was causing the layer to get destroyed immediately and hece was never useful. > Also removing mAnimatingViewIntoPlace as after setting this to true updateChildLayer was never being called. Change-Id: I08a6da25de002247c956308973f1675c0e61e15c
* | Removing support for CustomContent screenSunny Goyal2017-09-081-40/+11
|/ | | | | | | The supported way to customize Launcher and add a "-1 page" is by using LauncherOverlays. Custom content screen is no longer supported. Change-Id: I3f8a2734c287d1a69ae0c038ec1de1d45fa1b464
* Making some methods accessibleSunny Goyal2017-08-071-1/+1
| | | | | Bug: 63996463 Change-Id: I3cd2e21b8aa6744fc8003a131178ce1671e024dd
* Set edgeMarginPx back to 8dp.Jon Miranda2017-07-131-4/+4
| | | | | | | | | | | | | With the new grid changes, it was set to 16dp but this caused an issue where the workspace page spacing was too large. To "restore" the original page spacing we set it back to 8dp. This caused an issue where the pages began to overlap. This CL changes the edgeMarginPx back to 8dp, and then adds the additional 8dp to the padding of the CellLayout. Bug: 63590728 Change-Id: Ie968d8bd81de19c726f73581d6609e3bc486c5ca
* Don't fade in text if icon is in hotseatTony2017-06-281-1/+1
| | | | | Bug: 63011217 Change-Id: Ie914fcdfd0bf36b0cf12cc54f4e93206aa1074bd
* Landscape grid changes for Workspace/All Apps.Jon Miranda2017-06-231-3/+1
| | | | | | | | This is the just first CL to get eyes on the changes. Next CL will update the All Apps to be full width. Bug: 37015359 Change-Id: I2d7ec6851fdc13b8fa654e7e2be3152330243ccc
* Move PreviewBackground into its own class file.Jon Miranda2017-06-221-6/+7
| | | | | | | | | | This is done in preparation for new PreviewBackground animation where we will be animating in the first page preview items when closing the Folder from a non-first page. Bug: 36022592 Bug: 35064148 Change-Id: Id4d54da16ddfa852ca639a2dc8d328307d4d443a
* 1. Replace use of java.util.HashMap with android.util.ArrayMap inRajeev Kumar2017-06-121-40/+37
| | | | | | | | | CellLayout class 2. Get rid of explicit type arguments that can be inferred 3. Make instance variables final Bug: 62466540 Change-Id: I9acbde25704d62883d174f5573383a2d8b0e1e6e
* Dark text support for caret, drop target text and cell layout drop outlineMario Bertschler2017-06-081-1/+1
| | | | Change-Id: I1bcad657b6e49be6fa93cafe9d8ae304604be34d
* Defining a dark theme for launcherSunny Goyal2017-05-241-4/+1
| | | | | | | | > Removing the code for LIGHT_STATUS_BAR as that will be controlled by the theme > Updating icon cache to always use transparent background for low-res, as the theme can change the bg color Change-Id: Iab64ec29cab629ee515af22ec15b95d3f40a9df5
* Merge "Defining HomeScreenElementTheme for elements which appear on top of ↵Sunny Goyal2017-03-131-1/+2
|\ | | | | | | wallpaper" into ub-launcher3-master
| * Defining HomeScreenElementTheme for elements which appear on top ofSunny Goyal2017-02-171-1/+2
| | | | | | | | | | | | | | | | | | wallpaper > Using HomeScreenElementTheme for workspace items > Fixing view inflation where wrong layout inflater was being used Change-Id: I92e278dbfb609ad7af9c2f47351f23f03cf12049
* | Separating the config and flags in different directories so thatSunny Goyal2017-03-071-2/+2
| | | | | | | | | | | | | | it is easier to override one or the other Bug: 36001650 Change-Id: I713f4f5dbcf902614ce9f6c7a73bdace7bdf1ea0
* | Updating FolderIcon drawing to avoid dependency on software layer.Sunny Goyal2017-03-031-5/+4
|/ | | | | | | | | | | | Instead of cliping using clipPath, using PorterDuffXfermode to clear area outside the bounds. This provides much better support for antialiasing. Software layer was also being used for drawing shadow. But since the paint color was set to transparent, no shadow was being drawn in O. Instead drawing the shadow using radial gradient. Bug: 35680116 Bug: 35428783 Change-Id: I0431664400628d5d01675fe72fe7ade01b64d611
* Merge "Separating methods for updating the model to a sepatate class." into ↵TreeHugger Robot2017-02-161-1/+1
|\ | | | | | | ub-launcher3-master
| * Separating methods for updating the model to a sepatate class.Sunny Goyal2017-02-161-1/+1
| | | | | | | | | | | | | | Removing static access to model update methods, to allow for better access control and testing Change-Id: I9afe004dbf1b2fe50df422fd28bceea9230a4704
* | Removing wrapper around ViewPropertyAnimator, and using ObjectAnimatorSunny Goyal2017-02-161-6/+8
| | | | | | | | | | | | | | instead Bug: 35218222 Change-Id: Ic714cf7d20989cb45f07712e8a6f6659d0e3f30d
* | Remove unused View parameter from ofFloat method.Jon Miranda2017-02-061-2/+2
|/ | | | Change-Id: I5fabd5c78de52ba68b67e0b1bd7208f4d1f7cbea
* Reset initial animation values before completing reorder animation.Jon Miranda2017-01-041-0/+1
| | | | | | In some reorder cases, the icons would stop in a transient position. Change-Id: I9d358e74ab403989929dee87542d3dde78c2f229
* Merge "Fix widget reorder animations in multi-window mode." into ↵Jonathan Miranda2016-12-301-21/+41
|\ | | | | | | ub-launcher3-master
| * Fix widget reorder animations in multi-window mode.Jon Miranda2016-12-201-21/+41
| | | | | | | | | | | | | | | | | | | | The original animation assumed that the views are not translated and not scaled. In multi-window mode this assumption is no longer valid, because app widgets are scaled and translated to fit center within their cells. Bug: 32176631 Change-Id: Id60c793730d982277c9d91860e9fb0e6a0df7d38
* | Removing all compatibility code below LollipopSunny Goyal2016-12-161-3/+0
|/ | | | | Bug: 32745285 Change-Id: I62971908e3e4402941fab627bbdfd47be64473a3
* Merge "Restore original scaleRectAboutCenter method." into ub-launcher3-masterJonathan Miranda2016-12-151-3/+2
|\
| * Restore original scaleRectAboutCenter method.Jon Miranda2016-12-151-3/+2
| | | | | | | | Change-Id: Ibb49c56aab29d1223a0ab36476a32d565566eb25
* | Removing FeatureFlag.LAUNCHER3_LEGACY_WORKSPACE_DND and corresponding logicSunny Goyal2016-12-151-17/+6
|/ | | | Change-Id: Ie10c087b4f72ee27be5bf12e2c81be5b7a3a6176
* Smooth animation when dropping a widget in multi-window mode.Jon Miranda2016-12-141-5/+10
| | | | | | | | | | Factored in app widget scaling in methods related to estimating widget size and positions. ie. Dropping a widget that needs to be resized to fit in the workspace. Bug: 32176631 Change-Id: I106fe12041565a090047f146a07d4bc80a074b4a
* Merge "Defining various modes for CellLayout: Workspace, Hotseat & Folder" ↵Sunny Goyal2016-12-121-39/+45
|\ | | | | | | into ub-launcher3-master
| * Defining various modes for CellLayout: Workspace, Hotseat & FolderSunny Goyal2016-11-211-39/+45
| | | | | | | | | | | | | | > Moving the definition of modes to xml > Defining attributes in xml Change-Id: I7a569fdbeb833d569eeeef2f2cbc8214e608ad11
* | Scale widgets when dragging and dropping in multi-window mode.Jon Miranda2016-12-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This change mimics the non-MW mode behavior when dragging and dropping widgets by taking the app widget scale into consideration. This ensures a consistant drag and drop experience between MW mode and non-MW mode. * Uses cell data (cell height/width, spanX/Y) to get the expected widget sizes. * Scales sizes when necessary. Bug: 32176631 Change-Id: Icdaf73ecd89a30e57fe7f405292d793f2d6a3ee8
* | Scale widgets in multi-window mode.Jon Miranda2016-11-231-2/+14
|/ | | | | | | | | To keep this CL small and focused, I'm going to create a separate CL that handles the scaling for the widget in drag and drop mode. Bug: 32176631 Change-Id: Id6557d070edb664aa1f4851de7abf494cf8a0677
* Removing widgetGap and heightGap from cellLayoutSunny Goyal2016-11-201-84/+30
| | | | | | This values are always set to 0 Change-Id: Ic317efdc65baa22e915f4766c60c67c116bb94a8
* Hide workspace text in multi-window mode.Jon Miranda2016-11-151-1/+3
| | | | | | | | | * Vertically centers workspace icons. * New iconDisplay value so shortcut text is not overriden. Bug: 32176631 Change-Id: I86753bab5b24aafc417e0f77d8c471fc4c0dc7f0
* Removing some deprecated code around page layersSunny Goyal2016-10-261-10/+0
| | | | | | | | | 1) setChildrenDrawnWithCacheEnabled: deprecated 2) Removing custom logic based on isHardwareAccelerated. This check was not being used consistantly everywhere Bug: 29761236 Change-Id: Ic4a9c764f154497e376e37de2351fe04d1b48500
* Merge "Mark cells as unoccupied in onDragStart instead of startDrag." into ↵Tony Wickham2016-10-191-4/+0
|\ | | | | | | ub-launcher3-master
| * Mark cells as unoccupied in onDragStart instead of startDrag.Tony Wickham2016-10-181-4/+0
| | | | | | | | | | | | | | | | | | | | Also move cleanup (resetting variables to null) to onDragEnd instead of onDropCompleted. These changes are necessary because pre-drags (for apps with shortcuts) don't call onDragStart or onDropCompleted. Bug: 32246571 Change-Id: Ib18fac64555e9158b776f9c12afc2cb807b3c355
* | 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-2/+2
|/ | | | | | - Removed bad method/class name typos Change-Id: Ie6900e9e3d9ce9b550d2a2442a5dac3f7050a573
* Some optimizations in blur outline generatorSunny Goyal2016-09-021-0/+1
| | | | | | | | | 1) Using ALPHA_8 as the start and end bitmap. This removes one extra bitmap generation step 2) Using ByteBuffer on ALPHA_8 bitmap for clipAlpha. This allows us to use byteArray instead of intArray for representing pixels Change-Id: I1b654c439fd491b6b91180ddc562bb97fad857aa
* Removing wrong dead code around direction matchingSunny Goyal2016-08-181-6/+3
| | | | Change-Id: Ic8349fcac4bfe6222b1cbf26e8cbb1810dc32298
* Moving the state changes during drag-n-drop from startDrag to onDragStartSunny Goyal2016-08-151-3/+5
| | | | | | | This will allow drag controller to optinally defer drag, based on some threshold, by simply deferring the callback onDragStart Change-Id: I17c06a15e2092b9797c7e57529b12a53d2acae6e
* Fixing issue with shadow drawing over search bar.Winson2016-07-201-1/+2
| | | | | | - Adding notion of clip-against view for click shadow alignment. Bug: 30255227 Change-Id: Id5716a3484051a55690025d61f709e3d96cbe024
* Moving the QSB out of the cell layout to the Drag layerSunny Goyal2016-07-131-4/+0
| | | | | | | | 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
* Allowing the first screen to expand to the screen edgeSunny Goyal2016-06-061-13/+19
| | | | | This allows the QSB to extend all the way to the edge Change-Id: I43c6e21e44fef7fffe6fb12b7afb95549b68679f