Commit Graph

8 Commits

Author SHA1 Message Date
Adam Cohen
cb3382b1bf Refactor of Launcher drag and drop to use a DragObject
-> DragObject contains a bunch of parameters instead of pssing
   them each individually

Change-Id: I709cf320fe4234d71e19325d5c761dd9a9bba405
2011-05-24 16:17:13 -07:00
Michael Jurka
0280c3be4d Adding support for drag and drop of folders and shortcuts.
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
2010-09-24 15:28:20 -07:00
Michael Jurka
f79d5265c6 removing dead code 2010-09-17 10:59:31 -07:00
Patrick Dubroy
4ed6278e51 Implement button to get application info for an app shortcut.
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
2010-08-18 17:57:59 -07:00
Patrick Dubroy
440c360bc3 Fix bug with drag visualization and UserFolders.
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
2010-07-13 17:54:03 -07:00
Joe Onorato
00acb123c5 Move the drag thing into its own window that goes around on top of everything else. 2009-08-06 12:45:43 -07:00
Joe Onorato
a5902524d4 Launcher2 compiles. 2009-07-30 13:37:37 -07:00
Joe Onorato
fca7c88f9d Move com/android/launcher -> com/android/launcher2 2009-07-30 10:15:07 -07:00