summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/DragView.java
Commit message (Collapse)AuthorAgeFilesLines
* Disable hardware layers for drag viewsMichael Jurka2012-06-291-7/+6
| | | Also, avoiding allocating paint object every time we swipe
* Remove use of private ValueAnimator apiMichael Jurka2012-06-191-2/+2
| | | | Change-Id: I455edcd17bda83ab51c2c04fa40e66097a4d6975
* Fix warnings and remove dead codeMichael Jurka2012-04-131-2/+3
| | | Change-Id: I574d823fedf4b752c3df5a72599b390f708823ac
* Removing dead codeMichael Jurka2012-04-111-1/+0
|
* Adding fling-to-delete.Winson Chung2012-03-201-0/+18
| | | | | | - Also fixing issue where the drop target icon changes color slower than the text. Change-Id: I0bfa59da5d202016342f1c3de419ebcafd81ff6f
* Fixing some issues/regressions related to scaled icons.Winson Chung2012-03-081-1/+1
| | | | | | | | | | - 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
* Fixing flashing icon on delete, and offset of delete animation.Winson Chung2012-02-291-2/+8
| | | | Change-Id: I993f2d8e54cc7052e16f318a09ada80e9b766147
* Fix a lot of easy lint issuesMichael Jurka2012-02-241-6/+4
| | | | Change-Id: I80b43dae137cbbb912ec0fcc4e401de16a9b44a1
* Fixing issue where dragview was jagged when scaled.Winson Chung2012-02-231-2/+2
| | | | Change-Id: Ibc4b6e023428f39464f015726a22c2ec5130e63b
* Tweaking pickup animation, vibration and removing glow from drag view.Winson Chung2012-02-231-1/+0
| | | | Change-Id: I8c9741e8b63ca9a0fc4af90e178dbb02fa912d83
* Animating the widget previews on drag from AppsCustomize.Winson Chung2012-02-231-3/+3
| | | | Change-Id: I223d66bb447c40e6870be46bb27f107f0e428a95
* Fading out workspace when dragging to higlight dragged object.Winson Chung2012-02-231-3/+5
| | | | Change-Id: I540ce145168a65a029d820d6c14a1e3070f8a5b0
* Animating the drag view scale up and down when dragging items.Winson Chung2012-02-131-34/+31
| | | | Change-Id: Ic97d74a14964c6bdc23305b2d378b13a1f2e3664
* Improving widget transitions:Adam Cohen2012-02-131-0/+36
| | | | | | | | | | | | | -> 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
* Reverting: "Animating the drag view scale up and down when dragging items."Winson Chung2012-02-131-27/+13
| | | | Change-Id: I133ff2631834a4b97e1e4750fb7c07793ddeba69
* Animating the drag view scale up and down when dragging items.Winson Chung2012-02-071-13/+27
| | | | | | - Also fixing up how we draw the drag view alpha Change-Id: Ied82aec9d52274b0fe65c989eab818b0264a9eb2
* Removing unnecessary post when removing DragViewAdam Cohen2012-01-181-5/+1
| | | | | | | -> 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
* Fixing issue where holographic outlines were offset when dragging from/to ↵Winson Chung2011-10-191-3/+10
| | | | | | folders/hotseat. (Bug: 5399792) Change-Id: Iaa39ef1293b45a1d116210ec9d7fbde17dbc99cc
* Fixing a couple bugs, allapps clicks and weird crashAdam Cohen2011-07-201-19/+6
| | | | | | | -> issue 5021897 (when this was fixed, exposed more bugginess that is now fixed) -> issue 5038392 Change-Id: I49a4e9fca154f75ea22ad2c462641747536102ce
* Fixing crash when dragging item in software mode.Winson Chung2011-07-121-6/+0
| | | | Change-Id: I3d2c479061292a89355b70d07746fbef6fc4647a
* Substantially improved performance of dragging and drop animationsAdam Cohen2011-07-071-43/+25
| | | | | | | | | | -> 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
* Added transitions when dropping items onto Folders, fixed bugsAdam Cohen2011-07-021-1/+15
| | | | | | | -> 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
* Adding transitions after reorder within folderAdam Cohen2011-06-301-1/+1
| | | | Change-Id: I52b20fa1b2e4f9ee0b4a68ac703b95a2050dbd4a
* Cleaning up drag and drop visulization and drop location determinationAdam Cohen2011-04-151-16/+15
| | | | | | | | | -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
* Fixing drag icon location on non-xlarge devicesAdam Cohen2011-03-281-2/+2
| | | | Change-Id: I7897f67e145818866a51c6a50d4d3e59674b08b4
* Fix 3482911: NPE in CustomizePagedView.resetCheckedItemPatrick Dubroy2011-02-241-0/+8
| | | | | | Also fixes an issue where quick swipes on an item could cause it to animate in from (0, 0) sometimes. Change-Id: Ie3312389bcb5109f4b26ec518a29b4aa88161377
* Improve feedback during spring loaded modeMichael Jurka2011-01-251-17/+0
| | | | | | - 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
* Fix 3099036: Drag visualization appears in wrong spotPatrick Dubroy2011-01-171-0/+8
|
* Adding animations to Customize drawerAdam Cohen2010-12-081-2/+2
| | | | | | | -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-33/+66
| | | | Also, animate item the view to its new position when dragging.
* Show crosshairs when dragging items around the workspace.Patrick Dubroy2010-09-291-6/+9
|
* Adding support for drag and drop of folders and shortcuts. Michael Jurka2010-09-241-2/+17
| | | | | | | | | | | | | 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
* added support for dragging widgets and app icons to mini screensMichael Jurka2010-08-231-0/+30
| | | | | | | | | | | - 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
* Allow for NxM layout and in-place rotation of items on homescreen.Winson Chung2010-06-301-5/+0
| | | | | | Currently, rotation is disabled as designs are still in flux, but the NxM grid is enabled (8x4). Change-Id: I0026f88c674719e3d67de6d6d481d2d4cd606362
* fix 2261196 icons could be bigger when you drag them onto home screenJoe Onorato2010-02-011-1/+1
|
* Fix bug 2236111 - right edge of widget chopped-off while draggingJoe Onorato2009-11-041-3/+1
| | | | | | | 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.
* Add drag and drop from AllAppsView (to the workspace).Joe Onorato2009-09-031-5/+3
| | | | | 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.
* Move the drag thing into its own window that goes around on top of ↵Joe Onorato2009-08-061-0/+186
everything else.