Commit Graph

69 Commits

Author SHA1 Message Date
Winson Chung 318eee06ae Addressing issues with comments in previous new-app animation delay change.
Change-Id: I1185ae890c5374f9b736c567622372b54fbde0ed
2012-04-12 10:59:49 -07:00
Winson Chung 2c2b28ae55 Merge "Adding delay upon user interaction to prevent the new-app animation from taking over your phone. (Bug 6248609)" 2012-04-12 10:55:11 -07:00
Winson Chung 9658b1e659 Tweaking fling-to-delete to make the fade out animation longer and harder to trigger.
Change-Id: Ie444420d2cf81e209d4bbca9c77edaad39bda000
2012-04-09 18:30:31 -07:00
Winson Chung a2413751e3 Adding delay upon user interaction to prevent the new-app animation from taking over your phone. (Bug 6248609)
- Fixing issue where we might have been reading the db items while handling previous broadcast and adding db items to invalid positions
- Making items add alternating from the center page (as opposed to the current page)
- Re-adding the strict-mode fix (really requires 1. to be true)
- Adding flag for enabling strict mode exceptions
- Removing items from the new apps add list on uninstall-shortcut broadcast

Change-Id: I495e80bf5f8dbb4b87dd709460937d6f2a1e05e7
2012-04-09 17:04:00 -07:00
Michael Jurka 7bcadad93f Fix NPE
Bug: 6259450
Change-Id: Iea92f3832fcd3a88e7d13b2e55ba4faf83be93dd
2012-04-02 07:23:44 -07:00
Winson Chung 232decb008 Fixing issue where flinging-to-delete from a folder does not reflow/close the folder. (Bug 6240540)
Change-Id: I0d442761048c05110b079916eea7c0dcfbaf9759
2012-03-28 15:09:58 -07:00
Winson Chung a48487a814 Allow fling gesture while dragging from AllApps to dismiss drag.
Change-Id: I5eea14336579a1374aded63dda9ad1a33e8b8d4a
2012-03-22 13:00:16 -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 41bb19d277 Always remove drag view immediately when cancelling drag. (Bug: 6119112)
Change-Id: Ib0a829c5bee834700e29dba8538c83b773d017b2
2012-03-05 18:37:21 -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 7bd1bbb509 Animating the drag view scale up and down when dragging items.
Change-Id: Ic97d74a14964c6bdc23305b2d378b13a1f2e3664
2012-02-13 19:05:25 -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
Winson Chung 3bc21c35fa Fixing issue where the outline is on the wrong side of the screen when dragging to final page.
- Also allowing pages to snap in springloaded mode without moving your finger.

Change-Id: I868f700bd740f2cd1e02023e1dee0f66b0799c58
2012-01-20 14:00:00 -08:00
Winson Chung aa15ffe60e Allowing dragging to edge and holding to continue skipping pages.
Change-Id: I254f267e2ed04980925f71b7c96c2cac11f350ec
2012-01-18 15:45:56 -08:00
Michael Jurka 92f3d46cf3 Clean up unused code and import declarations
Change-Id: If36fd2d99a51b07290b13f697b3ea08d31feb023
2011-11-28 10:51:22 -08:00
Winson Chung 3f4e142380 Minor fixes to Launcher
- Tweaking the AllApps tab padding
- Fixing issue where the cling punch out might be in the wrong location
- Removing unused dragging code related to drop/scroll area overlap
- Tweaking padding so that picking up an icon on the top row does not automatically hover over delete (Bug 5636264)
- Fixing issue where multiple bgs in AllApps tab bar line makes it look blurry (Bug 5523822)

Change-Id: I707397c231188a9feee8c0856374e0483cf37296
2011-11-18 10:13:04 -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
Winson Chung a182096cb2 Fixing crash when you are dragging an app and the packages change under you. (Bug: 5280181)
- Removing unused dimension for app icon content size

Change-Id: If3910010577e902937d284296479f9a699516de3
2011-10-04 11:29:11 -07:00
Winson Chung 3e0839e5f8 Fixing issue where dragging in the hotseat could trigger scrolling to side pages. (Bug: 5151006)
Change-Id: I1b1b98ecc87180fa5994f46194f1b5668e618b91
2011-10-03 15:15:51 -07:00
Adam Cohen 36cc09b07b Fixing issue with cancelled drag blocking cell spaces (Issue 5386523)
Change-Id: I9cfc728edeeee2237c21935517107e7a2af49646
2011-09-29 17:33:15 -07:00
Michael Jurka c57b7a8233 Adding a progress bar while All Apps is loading
- also, removing some unused imports

Change-Id: Icf46beb9fa9d89bc06cba33c148ceb7d668cd402
2011-08-09 22:36:01 -07:00
Adam Cohen 9932a9b1e6 Fixing weird deferred click events after deleting folder
-> Fixing issue 5055487

Change-Id: I932f95f29322fa50035b13063ab51fad2d2217e8
2011-08-02 22:26:50 -07:00
Winson Chung 1c4cf4a11f Minor bug fixes
- Making the spring loaded side page hovers slightly faster
- Fixing issue where you can't drag over another item on another page to create a portal
- Ignoring side pages while hovering over hotseat
- Fixing issue where hotseat may be stuck in shrunken state (and removing the scale on the hotseat)

Change-Id: I87d50a1bdc451704285482c79caed0982a5a7f5a
2011-08-02 14:06:55 -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 273c102240 Clamping touch positions to drag layer rect to prevent dragging outside of bounds.
- Fixing small issue with default widget preview aspect ratios

Change-Id: I2dca0524e8aa7c48345b424bad889736fa345386
2011-07-11 14:00:02 -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
Winson Chung c07918d005 Cleaning up some spring-loaded related dragging code. Allow cancel spring loaded mode.
Change-Id: Ie1f0468c563bed7abc1aa6416e222cdb0853c03a
2011-07-06 20:48:45 -07:00
Adam Cohen 716b51e030 Adding transitions after reorder within folder
Change-Id: I52b20fa1b2e4f9ee0b4a68ac703b95a2050dbd4a
2011-06-30 13:53:30 -07:00
Adam Cohen bfbfd26c62 Initial implementation of folder reordering
Change-Id: I9f700e71f46e3b91afa96742d9e3890d519c391d
2011-06-13 16:55:12 -07:00
Adam Cohen c0dcf59708 Fixing up some Folder bugs
-> 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
2011-06-08 15:21:29 -07:00
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
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
Patrick Dubroy b0a6bbeeab *Actually* fix 3377113: Mini homescreen outline wrong color
New and improved! 100% fewer regressions!

Change-Id: I079a7842ecfe7e84c3fd599d6156638588a1d2d0
2011-03-02 18:40:21 -08:00
Patrick Dubroy bd361f7a85 Revert "Fix 3377113: Mini homescreen outline wrong color"
This reverts commit ba1ca8cf7a.
2011-03-02 16:20:29 -08:00
Patrick Dubroy ba1ca8cf7a Fix 3377113: Mini homescreen outline wrong color
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
2011-03-02 15:06:36 -08:00
Patrick Dubroy 5f44542560 Add missing animations when dragging from customize.
- Fix 3453751: Moon landing on canceled drag from customize
- Fix 3453595: Use home screen "consume" animation when dragging and dropping

Change-Id: Ia6a83c2d7a8f24c3ce02811547a35a7022d245f6
2011-02-18 20:03:59 -08:00
Patrick Dubroy e3887cc4ec Ensure drag outline & crosshairs disappear on drag cancel
Change-Id: I165d45846c0bfe74eda0d61b55e5b93fbfccdef2
2011-01-20 12:31:29 -08:00
Winson Chung 304dcde0e3 Ensuring that we don't start dragging while another drag is in progress.
Change-Id: If3c5a059407efc3ee9a0c9b1b3b7fb942d3a7664
2011-01-07 16:00:59 -08:00
Winson Chung 621e6406fa Cancelling a drag should signal to the source that the drag is incomplete.
Change-Id: I6464c4ccf15b550dd319e18c2e998131e46ccc0f
2011-01-04 16:04:32 -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 54fa3b9555 3185132: Allow dropping on adjacent homescreen targets 2010-11-17 13:41:37 -08:00
Adam Lesinski 6b879f0a58 Layout tweaks in Launcher
-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
2010-11-17 10:57:43 -08:00
Winson Chung a34abf8c78 Fixing issue where dropping on the system bar would not properly cancel the drag.
Change-Id: I3d920cabb99216c222d5c419374527068f1947d0
2010-11-12 14:59:59 -08:00
Patrick Dubroy a16fd5a6bd fix 3049894: Require fiddle or longer timeout for subsequent page flips
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.
2010-10-07 16:49:10 -07:00
Patrick Dubroy 1262e36948 wip 3029324: Implement new drag feedback
- Show page borders when dragging
- Enlarge scroll region (landscape only)
- When inside scroll region, show green border on adjacent page
2010-10-06 17:39:05 -07:00
Joe Onorato 658db74c24 the scroll drag area was too small, and should have come from a resource anyway.
Change-Id: I11111aff767e21a2582c5c368b5d9ff1ac8f9cd7
2010-09-30 18:17:31 -07:00
Patrick Dubroy de7658b5e0 Show crosshairs when dragging items around the workspace. 2010-09-29 11:14:28 -07:00