summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/CellLayout.java
Commit message (Collapse)AuthorAgeFilesLines
* Refactoring some folder binding logic:Sunny Goyal2019-08-141-0/+8
| | | | | | | | > Moving grid calcutation in a separate class > Moving content saving logic to folder instead of relying on item bind Bug: 139051851 Change-Id: I81b226dbebe13652482a767c992e8cc8f4f35a60
* Enabling fake rotation by defaultSunny Goyal2019-05-151-1/+2
| | | | | | | Fake rotation is only enabled if homescreen rotation is not enabled Bug: 131360075 Change-Id: Ie56fc4b46b38d3a599ec6da3d506a971e73b0394
* Fixing jank in folder animation.vadimt2019-05-021-3/+7
| | | | | | | | This continues ag/6410337 Bug: 69236787 Test: Manual Change-Id: Iac9f7ab21bf3741846b9721d4c8235e8fc49f7fb
* Initial changes to creating a fake landscape Launcher UISunny Goyal2019-05-021-4/+42
| | | | | | | | Workspace and hotseat are drawn in rotated UI giving the impression that the device is in Portrait, even though it is in landscape Bug: 131360075 Change-Id: I29c4068af25fd4dcf7039b9a45886e864a137977
* Skip state animation if animations are disabledSunny Goyal2019-04-221-1/+1
| | | | | | | > Also update the animation disabled check to use new-API Bug: 118678948 Change-Id: Ib709844e34bdb7e369b368a7c33f2e8ff120024b
* Making CellLayout inflatable without LauncherActivtiySunny Goyal2018-11-201-26/+10
| | | | | | | | | This will allow creating cellLayout with a different device profile or a different activtiy which can be used when displaying multiple activities in multi-display or generating a preview for changing display properties. Change-Id: I386731d95e33c48bdef270ce9c0d3e9feefb6262
* Converting long item IDs to intSunny Goyal2018-10-081-3/+3
| | | | | | | | > Items ids were already being typecasted to int when being bound on the UI > Using a consistent type allow better use of platform data-structures > Adding IntArray and IntSet as a replacement for various Collection classes Change-Id: Id3c650ed2420c2bfca3bd7671d2b705b56112371
* Removing various reflection based animations, to allow for better proguardingSunny Goyal2018-09-211-32/+0
| | | | Change-Id: If9df24ea4170e8a3d336057d1c3dc800934fc1ac
* Merge "Migrating to android-x" into ub-launcher3-masterTreeHugger Robot2018-08-141-3/+3
|\
| * Migrating to android-xSunny Goyal2018-08-141-3/+3
| | | | | | | | Change-Id: I9a774152d13a541e8496dd84f2469bfed407f86d
* | Removing static launcher activity dependency from FirstFrameAnimationHelperSunny Goyal2018-08-131-8/+10
|/ | | | | | | | Static dependency does not work in the presence of multiple activities and when the main activity is not Launcher (eg in fallback recents). Instead creating FirstFrameAnimatorHelper on demand for individual animations. Change-Id: I17bb69bbaaca92f0db994fb56fd784302c57d543
* Removing Launcher activity dependency on various animationsSunny Goyal2018-08-101-17/+32
| | | | | | | | | | | | | | (This cl reverts change-Id: I455edcd17bda83ab51c2c04fa40e66097a4d6975) Various animations were marked for cancellation when launcher activity is destroyed. This this does not work with multiple activities (Launcher, fallback recents, shortcut confirmation). Also since launcher activity handles configuration changes, the activity is not destroyed often. Instead associating a target with various animations which automatically cancels the animations when that target goes away. Change-Id: I64cd095a28075561a9e20c9dcdeb9f90c18e1047
* Don't prevent animations in power save modeTony Wickham2018-05-181-1/+1
| | | | | | | | | | Now that batter saver mode doesn't get rid of animations in P, we shouldn't use custom logic to prevent them either. Also updated ATLEAST_P to use version code. Bug: 79990054 Change-Id: If17cf369035c976f3d9d81f35432a045f1956ce5
* Simplifying options popup and overview handlingSunny Goyal2018-03-131-1/+1
| | | | | | | | | | > Removing support for page drag-n-drop from pagedView > Removing Overview UI from Launcher3 without quickstep and using options popup instead > Removing touch handlers from CellLayouts and showing options popup based on workspace long press > Excluding touch outside inset when showing the popup Bug: 74136505 Change-Id: I34c2a7ff58452db26f5d1a85d554be40fc75f2b8
* Removing click-feedback shadow generation logic in BubbleTextViewSunny Goyal2018-03-051-23/+3
| | | | | | | | Instead of animating the shadow, animating the icon scale. This avoids unnecessary bitmap creating at app-launch and also plays nice with the app-launch transition Change-Id: I1d3d24bc7212a6d659855ff1002a45388e269e52
* Updating landscape layout for launcher/quickstepSunny Goyal2018-01-081-4/+0
| | | | | | | | | | | > Hotseat is tied to navbar (on left in seascape) > Search box shows up in Overview (clicking it would crash for now) > All-apps is no longer fullscreen in landscape > Recents cards are appropriately scaled down > Hotseat is visible in Overview Bug: 70179916 Change-Id: I53149eaeac9557e8a01021b7e2d139f3d6ceef37
* No more waiting around for resumeSunny Goyal2017-12-191-0/+1
| | | | | | | | Apply model updates as son as they arrive instead of waiting for onResume. Various workspace items do not use any configuration dependent resources. For Widgets, we wait until the host starts lietening before inflating the actual view. Change-Id: Icb2f5e5940c1ce6c27062ccd34eff87e80af5ab1
* Adding an empty page in Recents view corresponding to workspaceSunny Goyal2017-12-191-1/+1
| | | | | | | The page is aligned to the workspace card and shows a widgets button in the empty region Change-Id: I479c47a2fbac4b3ef1aaf833d9fe82b5d7e10ddc
* 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