Commit Graph

8 Commits

Author SHA1 Message Date
Patrick Dubroy
de7658b5e0 Show crosshairs when dragging items around the workspace. 2010-09-29 11:14:28 -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
a63c452f5b added support for dragging widgets and app icons to mini screens
- 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
2010-08-23 15:49:58 -07:00
Winson Chung
aafa03cbb9 Allow for NxM layout and in-place rotation of items on homescreen.
Currently, rotation is disabled as designs are still in flux, but the NxM grid is enabled (8x4).

Change-Id: I0026f88c674719e3d67de6d6d481d2d4cd606362
2010-06-30 16:24:40 -07:00
Joe Onorato
e538b11371 fix 2261196 icons could be bigger when you drag them onto home screen 2010-02-01 19:10:25 -05:00
Joe Onorato
eebd92496e Fix bug 2236111 - right edge of widget chopped-off while dragging
By using resolveSize, we're clamping the size we measure to the
size of the screen, so just use our prefered size instead.  Nobody
is going to otherwise limit us, so this value won't be mismatched
with the size we actually get.
2009-11-04 13:48:32 -05:00
Joe Onorato
5162ea9b1f Add drag and drop from AllAppsView (to the workspace).
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.
2009-09-03 09:39:42 -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