summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/ShortcutAndWidgetContainer.java
Commit message (Collapse)AuthorAgeFilesLines
* Making some methods accessibleSunny Goyal2017-08-071-1/+1
| | | | | Bug: 63996463 Change-Id: I3cd2e21b8aa6744fc8003a131178ce1671e024dd
* Landscape grid changes for Workspace/All Apps.Jon Miranda2017-06-231-1/+3
| | | | | | | | 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
* Portrait grid changes for Workspace/All Apps.Jon Miranda2017-06-191-1/+1
| | | | | Bug: 37015359 Change-Id: Ifbdd0e71c36e532b189e02283e3eeb562ebe2654
* Fix widget reorder animations in multi-window mode.Jon Miranda2016-12-201-7/+5
| | | | | | | | | | 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
* Smooth animation when dropping a widget in multi-window mode.Jon Miranda2016-12-141-2/+9
| | | | | | | | | | 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-26/+6
|\ | | | | | | into ub-launcher3-master
| * Defining various modes for CellLayout: Workspace, Hotseat & FolderSunny Goyal2016-11-211-26/+6
| | | | | | | | | | | | | | > Moving the definition of modes to xml > Defining attributes in xml Change-Id: I7a569fdbeb833d569eeeef2f2cbc8214e608ad11
* | Scale widgets in multi-window mode.Jon Miranda2016-11-231-7/+23
|/ | | | | | | | | 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-11/+3
| | | | | | This values are always set to 0 Change-Id: Ic317efdc65baa22e915f4766c60c67c116bb94a8
* Hide workspace text in multi-window mode.Jon Miranda2016-11-151-14/+23
| | | | | | | | | * 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-24/+0
| | | | | | | | | 1) setChildrenDrawnWithCacheEnabled: deprecated 2) Removing custom logic based on isHardwareAccelerated. This check was not being used consistantly everywhere Bug: 29761236 Change-Id: Ic4a9c764f154497e376e37de2351fe04d1b48500
* Use Launcher.getLauncher(Context) instead of type-casting.Tony2016-10-071-1/+1
| | | | | Bug: 32010039 Change-Id: Icb80d3e547a706740b84df2cb80f99e4a7f81c43
* Initial changes to tweak layout.Winson2016-07-201-1/+1
| | | | | | | | | | | | | | | - Adding DeviceProfile callback for when the launcher layout changes due to insets. This is necessary since there are now different layouts depending on which side the navigation bar is on - Consolidating hotseat and other layout into the device profile launcher layout logic - Making the all apps icons match the workspace icon height - Tweaking caret drawable to draw to the bounds specified to simplify layout in each orientation - Fixing minor issue with page indicator shifting in landscape - Centering overview buttons to the workspace page Bug: 30021487 Change-Id: I1866bce00b2948f3edd06168c0f88d81207e3f13
* Allowing the first screen to expand to the screen edgeSunny Goyal2016-06-061-0/+8
| | | | | This allows the QSB to extend all the way to the edge Change-Id: I43c6e21e44fef7fffe6fb12b7afb95549b68679f
* Merge "Add appropriate (tiny) offset to widget drops so they land ↵Tony Wickham2015-12-041-2/+1
|\ | | | | | | | | | | | | | | | | correctly." into ub-launcher3-burnaby-polish am: 8db5d7ca60 * commit '8db5d7ca60e79f007bfce7952c15c74d0ee44bc0': Add appropriate (tiny) offset to widget drops so they land correctly.
| * Add appropriate (tiny) offset to widget drops so they land correctly.Tony Wickham2015-12-031-2/+1
| | | | | | | | | | | | | | Also removed some unused parameters I found on the way. Bug: 25191623 Change-Id: Ib9a30db106467c114cc8b54a5b13ed3e88162d56
| * Don't add offset to CellLayout's fullscreen children.Tony Wickham2015-11-101-1/+0
| | | | | | | | | | Bug: 25411084 Change-Id: Ifbcd0a53cf04a7fc29386f4f09aaf7f972e7354a
* | Removing some eclipse warningsSunny Goyal2015-08-171-24/+0
|/ | | | Change-Id: I160feaee81b262be02446885fae643c0be71b7af
* Refactoring DeviceProfileAdam Cohen2015-05-211-6/+6
| | | | | | | | | | | | | | | | | | | | -> 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
* Various lint error fixes.Sunny Goyal2015-05-141-5/+1
| | | | | | | | > Fixing some RTL errors by specifying both marginStart and marginLeft > Moving all layout direction checks to Utilities > Explicitely adding @TargetApi before every method Change-Id: Ibe9c52b93b5a6adeadb27ace2b312770fd732ea0
* Removing some unused method params from CellLayoutSunny Goyal2015-04-241-8/+0
| | | | | | | > Replacing various distance calculations with Math.hypot > Moving findVacantCell to Utilities Change-Id: I0cb194b603e52b3bb2b29a095bb4da2bb408ab13
* Fixing folder focus logicSunny Goyal2015-04-161-1/+1
| | | | | | | | | | > Folder items no longer remain in a linear order when a folder gets rearranged, and se we need to use createSparseMatrix instead of createFullArray. Also because of this we need to use getChildAt(x, y) instead of getChildAt(index) > Removing traces of AppsCustomizePage (all apps) from FocusHelper Change-Id: I9007f6b95cb823e27ef4a43ce725fda8ef1b7cf8
* Supporting custom widgets provided by launcherAdam Cohen2014-12-051-0/+9
| | | | | | | -> This change provides integration for widgets provided by the launcher package which can run arbitrary code. Change-Id: I6052da5c4afed7ee72e3b44d045b9c46f2d84c42
* Initial changes for new clings. (Bug 11142616)Winson Chung2013-10-091-0/+7
| | | Change-Id: Id66ebceb99449941921d9e617dfe0cc05a2e3b65
* Ensuring that we offset cell items by their destination cell padding. (Bug ↵Winson Chung2013-10-081-1/+8
| | | | | | 10881814) Change-Id: Idc16ae64b1a0e7f79b8a3ff5da6854fbab7867d2
* Don't measure GONE views.Vladimir Marko2013-10-071-1/+3
| | | | | | | | | Don't measure GONE views in ShortcutAndWidgetContainer and PagedView. They will not be processed in onLayout anyway. This is pre-requisite for avoiding costly onMeasure in GEL. Bug: 10734110 Change-Id: I4c1bef41d9185af5eda42b43371546c60f341f87
* Fixing some grid spacing issues. (Bug 10754537, 10754538)Winson Chung2013-09-191-1/+2
| | | | | | | - Ensuring app names don't run into each other in folders and on the workspace - Ensuring that app names are aligned with folder names Change-Id: Ie8d546eacd52005778d81c46011c1c84bc24118c
* Fix crash when setting wallpaperMichael Jurka2013-09-051-3/+0
| | | | | Also clean up some unused code Change-Id: Ibef8d3d594cc859a993640fd6ee578e9eeb633d1
* Initial Changes for Dynamic GridWinson Chung2013-08-201-2/+23
| | | | Change-Id: I9e6f1e5167791cf8dc140778dfa447f86424e9bf
* Giving custom content full screenAdam Cohen2013-07-231-5/+14
| | | | Change-Id: Icd104fff8a1a315b795a60b812048a6218bf0e5a
* Launcher2 is now Launcher3.Daniel Sandler2013-06-051-0/+204
Changes include - moving from com.android.launcher{,2} to com.android.launcher3 - removing wallpapers - new temporary icon Change-Id: I1eabd06059e94a8f3bdf6b620777bd1d2b7c212b