Commit Graph

36 Commits

Author SHA1 Message Date
Michael Jurka
3a9fcedbcd Fix warnings and remove dead code
Change-Id: I574d823fedf4b752c3df5a72599b390f708823ac
2012-04-13 14:52:51 -07:00
Michael Jurka
64c9ab3188 Removing dead code 2012-04-11 15:26:53 -07:00
Winson Chung
043f2af567 Adding fling-to-delete.
- Also fixing issue where the drop target icon changes color slower than the text.

Change-Id: I0bfa59da5d202016342f1c3de419ebcafd81ff6f
2012-03-20 15:18:05 -07:00
Winson Chung
eecf02da58 Fixing some issues/regressions related to scaled icons.
- Fixes issue with folder icons being clipped in landscape in sw720dp (Bug: 6118397)
- Fixes issue with divider being in wrong orientation in sw720dp
- Fixes issue with scaled icons not being drawn with filtering
- Fixes issue with side pages showing under the hotseat when in landscape in phone UI
- Animates the drag view on pick up and drop

Change-Id: Iad26427ec63fcbc9bdb3b29a4645689ba445d5c8
2012-03-08 13:37:46 -08:00
Winson Chung
61967cb17f Fixing flashing icon on delete, and offset of delete animation.
Change-Id: I993f2d8e54cc7052e16f318a09ada80e9b766147
2012-02-29 10:25:41 -08:00
Michael Jurka
6cfafb96c3 Fix a lot of easy lint issues
Change-Id: I80b43dae137cbbb912ec0fcc4e401de16a9b44a1
2012-02-24 12:53:08 -08:00
Winson Chung
bd7f37acba Fixing issue where dragview was jagged when scaled.
Change-Id: Ibc4b6e023428f39464f015726a22c2ec5130e63b
2012-02-23 17:55:08 -08:00
Winson Chung
61b0c69d3f Tweaking pickup animation, vibration and removing glow from drag view.
Change-Id: I8c9741e8b63ca9a0fc4af90e178dbb02fa912d83
2012-02-23 16:33:08 -08:00
Winson Chung
72d598400d Animating the widget previews on drag from AppsCustomize.
Change-Id: I223d66bb447c40e6870be46bb27f107f0e428a95
2012-02-23 12:21:12 -08:00
Winson Chung
867ca62c0e Fading out workspace when dragging to higlight dragged object.
Change-Id: I540ce145168a65a029d820d6c14a1e3070f8a5b0
2012-02-23 10:32:03 -08:00
Winson Chung
7bd1bbb509 Animating the drag view scale up and down when dragging items.
Change-Id: Ic97d74a14964c6bdc23305b2d378b13a1f2e3664
2012-02-13 19:05:25 -08:00
Adam Cohen
ed66b2bac7 Improving widget transitions:
-> When a widget has no configuration activity, we bind
   and inflate it when the user picks it up. This allows
   us to smoothly transition between it's preview and
   some actual state of the widget when it is dropped.
-> When a widget has a configuration activity, we delay
   the above process until the configuration activity
   has been run at which time we transition between
   the preview and the actual widget.

Change-Id: I5265cd98400d70e5e75c3dcd21e322ed0b352d7b
2012-02-13 13:30:32 -08:00
Winson Chung
a1cdab0392 Reverting: "Animating the drag view scale up and down when dragging items."
Change-Id: I133ff2631834a4b97e1e4750fb7c07793ddeba69
2012-02-13 13:03:52 -08:00
Winson Chung
42c29aedf2 Animating the drag view scale up and down when dragging items.
- Also fixing up how we draw the drag view alpha

Change-Id: Ied82aec9d52274b0fe65c989eab818b0264a9eb2
2012-02-07 16:16:27 -08:00
Adam Cohen
ac8d748c07 Removing unnecessary post when removing DragView
-> This fixes a jank bug where you could see a dragged
   item in two places for a frame, upon release of that item

Change-Id: I5aecc3be530763f2f067fd496e2c8e1d6f95af13
2012-01-18 17:52:30 -08:00
Winson Chung
b8c69f3c17 Fixing issue where holographic outlines were offset when dragging from/to folders/hotseat. (Bug: 5399792)
Change-Id: Iaa39ef1293b45a1d116210ec9d7fbde17dbc99cc
2011-10-19 23:57:04 -07:00
Adam Cohen
fc53cd22c9 Fixing a couple bugs, allapps clicks and weird crash
-> issue 5021897 (when this was fixed, exposed more bugginess that is now fixed)
-> issue 5038392

Change-Id: I49a4e9fca154f75ea22ad2c462641747536102ce
2011-07-20 17:59:04 -07:00
Winson Chung
e3512e7589 Fixing crash when dragging item in software mode.
Change-Id: I3d2c479061292a89355b70d07746fbef6fc4647a
2011-07-12 10:23:15 -07:00
Adam Cohen
8dfcba4af7 Substantially improved performance of dragging and drop animations
-> Took DragView drawing out of the window and put it into the DragLayer
-> Added fade-in/out animations to transition between the final view
   and the DragView, after the view animates
-> Enabled hardware layers on Folder items which improves the
   performance Folder reordering

Change-Id: I4d92ca9fba172d1bab9efc215a99abcaadcdf503
2011-07-07 16:59:45 -07:00
Adam Cohen
3e8f811f31 Added transitions when dropping items onto Folders, fixed bugs
-> Changed the ordering of the FolderIcon preview to show first items first
-> Folder now closes immediately upon drop of an item from folder to workspace

Change-Id: I66361b604dc5ef81da2413b7dda53d0c4691377e
2011-07-02 18:42:25 -07:00
Adam Cohen
716b51e030 Adding transitions after reorder within folder
Change-Id: I52b20fa1b2e4f9ee0b4a68ac703b95a2050dbd4a
2011-06-30 13:53:30 -07:00
Adam Cohen
e3e27a854f Cleaning up drag and drop visulization and drop location determination
-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
2011-04-15 13:29:26 -07:00
Adam Cohen
8878a32f26 Fixing drag icon location on non-xlarge devices
Change-Id: I7897f67e145818866a51c6a50d4d3e59674b08b4
2011-03-28 14:16:36 -07:00
Patrick Dubroy
6f13342ffd Fix 3482911: NPE in CustomizePagedView.resetCheckedItem
Also fixes an issue where quick swipes on an item could
cause it to animate in from (0, 0) sometimes.

Change-Id: Ie3312389bcb5109f4b26ec518a29b4aa88161377
2011-02-24 16:50:55 -08:00
Michael Jurka
f12c75cb48 Improve feedback during spring loaded mode
- Uniformly scale the outlines of items on the screens to match the correct grid size as closely as possible
- Fix bug with drag + drop that was reporting dragged items' height wrong
- Remove unused code
2011-01-25 22:42:27 -08:00
Patrick Dubroy
62bbb3c573 Fix 3099036: Drag visualization appears in wrong spot 2011-01-17 16:44:24 -08:00
Adam Cohen
120980bd00 Adding animations to Customize drawer
-When you tap to add in customize drawer the widgets
 / app shortcuts now animate to the mini screens

Change-Id: I0a5b5ae561fda3fbbf902003273477a5ed7ca5cc
2010-12-08 22:49:08 -08:00
Patrick Dubroy
a669d79d0d Prevent flicker when starting a drag.
Also, animate item the view to its new position when dragging.
2010-11-24 10:00:55 -08:00
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