summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/DragLayer.java
Commit message (Collapse)AuthorAgeFilesLines
* Implement spring-loading of folders when dragging over.Jorim Jaggi2014-06-061-20/+15
| | | | | Bug: 8912132 Change-Id: Id81889a133e56461df2e20599c4b40020818ba18
* Adding migration Clings. (Bug 11973614)Winson Chung2014-06-061-1/+2
| | | | | | - Refactoring Launcher cling code out to LauncherClings. Change-Id: Iff4f84f5b8bfeb69b1be0b4802022c3eb20b6f2c
* Remove a non-obvious fall through in a switch statement.Mihail Dumitrescu2014-06-061-7/+4
| | | | | | | | | This CL does not modify the result of calling onInterceptHoverEvent() assuming isEventOverFolder() has no side effects. The only change is that isEventOverFolder will now be called once rather than twice when action == MotionEvent.ACTION_HOVER_ENTER and isOverFolder == true. Change-Id: Icc28ab880cf5094e49f51d72035891e924cb2031
* Use the icon bounds for all calculations.Winson Chung2014-06-061-3/+7
| | | | | | | | - Fixes a drag and drop issue when the dynamic grid scales icons down, due to the drawable bounds not being equal to their bitmap sizes. Change-Id: If7c68b51131de7bac3195a2619e22340f7789432
* Set insets on newly added views.Dave Hawkey2014-06-061-12/+24
| | | | | | | | This is needed for adding an internal-only dogfood indicator above the search plate in http://ag/386251. Bug: 10954064 Change-Id: I72cb0e978a5118ce45f69a493ac631d0c165b237
* Fix drop animation issue in springloadedAdam Cohen2014-06-051-5/+7
| | | | Change-Id: I1d8bf9d92ab7b94238e3e6a27b0eebf2c9af6872
* Revert "Trebuchet: add lockscreen wallpaper picker"Nebojsa Cvetkovic2014-05-271-2/+1
| | | | | | This reverts commit 29c2da02bf48fbdba977bc774027e218487e1abe. Change-Id: Ie5addf5ac77acb6411a6f22195d8608df625462a
* Trebuchet Settings UI RefreshRaj Yengisetty2014-05-241-0/+3
| | | | | | | | | | | | | | | | | | - Overview Panel contains all Launcher Settings - Accessible through long press on Workspace or HW Menu button - Settings are held in a SlidingPanel in the Overview Panel - Replace the Settings shortcut in Overview Panel with Themes shortcut - Replace widgets icon with new widgets icon from Launcher3 - Trebuchet Settings changes no longer require restarting Process - Transition Effects have PNG Sequence to show animation sequence - Remove PageIndicator click event to open Overview Panel in AppTray Contributors: Adrian Foulk - UX Lead Abishek Devkota - Project Manager Hayden Schoen - UX Designer Change-Id: I2186213960cf12e840e814757894fe104551856b
* Trebuchet: add lockscreen wallpaper pickerRoman Birg2014-04-281-1/+2
| | | | | Change-Id: Ic4f2589924a3c61b676db907f08108286dc45c29 Signed-off-by: Roman Birg <roman@cyngn.com>
* Fix widget longpress issue where longpress misfires (issue 10988288)Adam Cohen2013-10-081-6/+26
| | | | Change-Id: Ibe4aa4d92a1b419b63ff3cf61164c637fb579221
* Ensuring that the folder scrim background spans the full device height. (Bug ↵Winson Chung2013-09-271-1/+1
| | | | | | 10965246) Change-Id: I603d6ed61d01c6b0a460dc0205eceb25f6964b9d
* Add system window inset support to DragLayer and children.John Spurlock2013-09-111-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of fitting system windows as before, DragLayer now lays out under the system windows. DragLayer will simply add the system window insets to each child's layout margins by default. e.g. for Hotseat, Page Indicators, QSB, Search Overlay. Children that want to use the full viewport can declare so by implementing a new Insettable interface. System window insets will be passed to Insettable#setInsets(insets) and the child can do what it wants with them. Currently, two of DragLayer's children implement Insettable: 1) Workspace (for the -1 screen). Full screen pages are given the entire viewport, paged view offsets modified to end up in the right place now that the viewport is larger (the full screen height). Non-full screen pages like the normal icon pages simply apply the insets to end up in the same place they did before. NowClientCardsView uses the full viewport, applying the insets as padding. Will want to better take advantage of this new real estate in a future CL. 2) All Apps (AppsCustomizeTabHost). Applies the insets as layout margin one level down, so that the bar area is opaque during the transition, but visually the content lands in the same place. (Also add db_files to .gitignore to ignore the output of the db tool) Bug:10687177 Bug:10652189 Change-Id: I80b25d63884d244fcf704b24dad9497ee0d8b453
* Initial Changes for Dynamic GridWinson Chung2013-08-201-5/+2
| | | | Change-Id: I9e6f1e5167791cf8dc140778dfa447f86424e9bf
* Don't switch pages when dragging out of folderAdam Cohen2013-08-141-1/+1
| | | | | | | | | -> Fix bug where page switch indicator wouldn't draw on right -> Fixed some code related to folder reordering -- no behaviour change yet, but once the new AutoScroll is in, this should behave correctly (ie. shouldn't reorder while in scroll zone) Change-Id: Ic14a8d70858777164f094204472dc6a726dd461a
* Verifying that new applications are added and fixing issue with new items ↵Winson Chung2013-07-251-71/+2
| | | | | | | | getting wrong ids. - Fixing issue where the LauncherModel would be out of sync on first migration, and subsequent crashes Change-Id: I6f58b09b615b28958c7f941e58ff9ae0ee3ba939
* Fixing performance issues with drawing all visible pages.Winson Chung2013-07-191-2/+8
| | | | Change-Id: I17736c1e6afa1f4a961c136fe82bf1d632cbe6cc
* Porting PagedView from KG to gain simplified scaling model, reorderingAdam Cohen2013-07-081-14/+78
| | | | | | | | | | | | -> We are no longer scaling individual Celllayouts, instead we are scaling the entire Workspace (and the CellLayouts come along for the ride) -> Due to the above change, many assumptions were broken. In particular, our drag and drop / animation archiecture is fairly fragile due to the frequent and complex mapping of points between different bits of the hierarchy. This CL contains a number of fixes which address such breakages. Change-Id: I2e630eab17528729b764b61f587858f6499fd318
* Lazily instantiate LauncherAppState.Daniel Sandler2013-06-271-4/+1
| | | | | | | | The application context for LauncherAppState is supplied by the application whenever it starts; don't ask for an instance before that. Change-Id: I1ca8ea04238a357a682f79250f08813ead7ae532
* Move LauncherApplication's state and code to LauncherAppState.Daniel Sandler2013-06-111-2/+2
| | | | | | | | This removes Launcher's static data and other state out of the Application object. Now LauncherApplication (extends Application) exists only to instantiate LauncherAppState. Change-Id: I4e323bd78b77536b92054105536a55c0c2c19ba8
* Launcher2 is now Launcher3.Daniel Sandler2013-06-051-0/+804
Changes include - moving from com.android.launcher{,2} to com.android.launcher3 - removing wallpapers - new temporary icon Change-Id: I1eabd06059e94a8f3bdf6b620777bd1d2b7c212b