summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/DragController.java
Commit message (Collapse)AuthorAgeFilesLines
* Initial implementation of folder reorderingAdam Cohen2011-06-131-0/+3
| | | | Change-Id: I9f700e71f46e3b91afa96742d9e3890d519c391d
* Fixing up some Folder bugsAdam Cohen2011-06-081-6/+4
| | | | | | | | | | -> Rendering properly while in spring-loaded mode -> Fixed bug where sometimes the folder's background would vanish -> Fixed bug where the folder background was "stuck" in a fixed location, not following the folder -> Can now add to folders and create folders from spring-loaded mode Change-Id: Ie1c5583a6230a192e6d07763d001b50053daca43
* Refactor of Launcher drag and drop to use a DragObjectAdam Cohen2011-05-241-47/+32
| | | | | | | -> DragObject contains a bunch of parameters instead of pssing them each individually Change-Id: I709cf320fe4234d71e19325d5c761dd9a9bba405
* Cleaning up drag and drop visulization and drop location determinationAdam Cohen2011-04-151-10/+10
| | | | | | | | | -Visualization and drop location always match now -Improved the location determination/visualization for widgets in spring loaded mode -Simplified and fixed some other discrepencies Change-Id: I4b46f415a547e4df778c70a8b87f341a909d10c1
* *Actually* fix 3377113: Mini homescreen outline wrong colorPatrick Dubroy2011-03-021-10/+8
| | | | | | New and improved! 100% fewer regressions! Change-Id: I079a7842ecfe7e84c3fd599d6156638588a1d2d0
* Revert "Fix 3377113: Mini homescreen outline wrong color"Patrick Dubroy2011-03-021-7/+9
| | | | This reverts commit ba1ca8cf7ae52f730de9a8d543f8f0d484e76c32.
* Fix 3377113: Mini homescreen outline wrong colorPatrick Dubroy2011-03-021-9/+7
| | | | | | | | Couldn't repro this reliably, but the only way I could see it happening is if we got an UP event without a MOVE at the same location. This patch prevents that from happening. Change-Id: I473c4ea50474b45da8c5537efe39177c1423ae20
* Add missing animations when dragging from customize.Patrick Dubroy2011-02-181-22/+12
| | | | | | - Fix 3453751: Moon landing on canceled drag from customize - Fix 3453595: Use home screen "consume" animation when dragging and dropping Change-Id: Ia6a83c2d7a8f24c3ce02811547a35a7022d245f6
* Ensure drag outline & crosshairs disappear on drag cancelPatrick Dubroy2011-01-201-0/+1
| | | | Change-Id: I165d45846c0bfe74eda0d61b55e5b93fbfccdef2
* Ensuring that we don't start dragging while another drag is in progress.Winson Chung2011-01-071-0/+4
| | | | Change-Id: If3c5a059407efc3ee9a0c9b1b3b7fb942d3a7664
* Cancelling a drag should signal to the source that the drag is incomplete.Winson Chung2011-01-041-4/+7
| | | | Change-Id: I6464c4ccf15b550dd319e18c2e998131e46ccc0f
* Adding animations to Customize drawerAdam Cohen2010-12-081-3/+6
| | | | | | | -When you tap to add in customize drawer the widgets / app shortcuts now animate to the mini screens Change-Id: I0a5b5ae561fda3fbbf902003273477a5ed7ca5cc
* Prevent flicker when starting a drag.Patrick Dubroy2010-11-241-0/+7
| | | | Also, animate item the view to its new position when dragging.
* 3185132: Allow dropping on adjacent homescreen targetsPatrick Dubroy2010-11-171-0/+1
|
* Layout tweaks in LauncherAdam Lesinski2010-11-171-1/+0
| | | | | | | | | | | | | | -Removed All apps and Configure toolbar buttons from Customization Drawer, removed Configure button from All apps and added Market icon to All apps -Changed spacing of CellLayouts when scrolling -Modified gap spacing in workspace layout -Made workspace invisible in All apps but touching the place where the workspace was takes you back to workspace Change-Id: I6e2579bfebeb8f1f80fdae07da442f6d399abe33
* Fixing issue where dropping on the system bar would not properly cancel the ↵Winson Chung2010-11-121-0/+2
| | | | | | drag. Change-Id: I3d920cabb99216c222d5c419374527068f1947d0
* fix 3049894: Require fiddle or longer timeout for subsequent page flipsPatrick Dubroy2010-10-071-4/+20
| | | | | | After initiating a scroll while dragging an item on the home screen, don't flip so quickly to the next page. Instead, require a bit of additional movement to trigger the next scroll.
* wip 3029324: Implement new drag feedbackPatrick Dubroy2010-10-061-2/+9
| | | | | | - Show page borders when dragging - Enlarge scroll region (landscape only) - When inside scroll region, show green border on adjacent page
* the scroll drag area was too small, and should have come from a resource anyway.Joe Onorato2010-09-301-4/+11
| | | | Change-Id: I11111aff767e21a2582c5c368b5d9ff1ac8f9cd7
* Show crosshairs when dragging items around the workspace.Patrick Dubroy2010-09-291-64/+62
|
* Adding support for drag and drop of folders and shortcuts. Michael Jurka2010-09-241-2/+6
| | | | | | | | | | | | | also: - Long press on empty space on workspace now brings up customization tray - Fixed: while dragging, items appeared to be dropping on folders two cells to the right - Fixed: Disabling drops on folders when the workspace is shrunken - Fixed: account for scaling of dragged items when checking if they overlap with shrunken workspace screens - Making folder icons dimmable to match shortcuts and widgets - When deciding with shrunken workspace screen we're dragging to, we now use the closest screen rather than the one that has been overlapped the most - Refactored drag/add mechanism, removing array of occupied cells from CellInfo - Removed dead code/variables
* Initital changes for new customization drawer/widget tab design.Winson Chung2010-09-151-1/+30
| | | | Change-Id: I160c8777fe2657ab303acfa20934f2e90f9e953e
* added support for dragging widgets and app icons to mini screensMichael Jurka2010-08-231-5/+54
| | | | | | | | | | | - gave mini screens a rounded rect background - mini screens change color when dragged over - added a way to specify the active region of dragged items, to allow for clipping of whitespace at borders - fixed: feedback while dragging was often one cell off - fixed: bug when adding to almost-full screen - removed unused classes Change-Id: I2fbd2aaaee6831b288cca8dec75e7b446068e8d1
* Implement button to get application info for an app shortcut.Patrick Dubroy2010-08-181-8/+8
| | | | | | | | For now, it's just a drag target like the delete zone. Once all apps and the home screen support a selection mode, this (and delete) will be implemented as buttons in the Contextual Action Bar. Change-Id: I6bf43d03eefda672ea34c583a7021137da22b184
* Fix null pointer when dragging outside of workspace.Patrick Dubroy2010-07-161-6/+7
|
* Fix bug with drag visualization and UserFolders.Patrick Dubroy2010-07-131-1/+19
| | | | | | | | | When dragging an app shortcut, it was possible that we'd show a red rectangle around a cell occupied by a UserFolder. This shouldn't be possible -- as soon as that cell becomes the target drop cell, the folder should start handling the drag and drop events. Change-Id: I1b7a8b1aa9aeb7e2f1bd51ce8d947c06455e988f
* Mask bitmap creation errors while dragging shortcuts.Daniel Sandler2010-05-251-0/+9
| | | | | | | | If we're unable to create a bitmap for the drag, e.g. due to memory pressure, give up. Bug: 2650809 Change-Id: I5d7360dbb1bd736a629451467e93cccdfc255b67
* Fix dpad nav: go left/right when dpad is moved and dots are focused.Romain Guy2010-01-111-11/+18
| | | | Bug #2359364
* Fix 2257802 - Screen unresponsive when you get a call while moving the ↵Joe Onorato2009-11-121-1/+8
| | | | shortcuts or widgets on home screen
* Bug 2231692 - Turn off launcher2 logging.Joe Onorato2009-11-111-1/+1
|
* Fix 2246713 - Bad offset when picking up a widget for the first time.Joe Onorato2009-11-081-2/+4
|
* Launcher2: fix 2162230 - Can't add app shortcuts from 3D All AppsJoe Onorato2009-10-061-0/+2
|
* Now that touch events can go off the edge of the screen, clampJoe Onorato2009-09-251-14/+43
| | | | them to the screen size for hit testing purposes while dragging.
* Add drag and drop from AllAppsView (to the workspace).Joe Onorato2009-09-031-24/+43
| | | | | Also had to fix AppInfoCache to load the icon as a drawable, which I had broken when I made AllAppsView use the icons as power of two textures.
* Redo the launcher loading code and put the real app icons into rollo.Joe Onorato2009-08-241-2/+4
|
* Move the all apps view back into the window with the workspace.Joe Onorato2009-08-161-0/+2
|
* Move the drag thing into its own window that goes around on top of ↵Joe Onorato2009-08-061-16/+451
| | | | everything else.
* Launcher2 compiles.Joe Onorato2009-07-301-1/+1
|
* Move com/android/launcher -> com/android/launcher2Joe Onorato2009-07-301-0/+79