Commit Graph

51 Commits

Author SHA1 Message Date
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
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
Winson Chung
e3193b93ad Initital changes for new customization drawer/widget tab design.
Change-Id: I160c8777fe2657ab303acfa20934f2e90f9e953e
2010-09-15 14:45:11 -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
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
c1701ad4b2 Fix null pointer when dragging outside of workspace. 2010-07-16 15:43:04 -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
Daniel Sandler
3f8175a86e Mask bitmap creation errors while dragging shortcuts.
If we're unable to create a bitmap for the drag, e.g. due to
memory pressure, give up.

Bug: 2650809
Change-Id: I5d7360dbb1bd736a629451467e93cccdfc255b67
2010-05-25 11:49:48 -04:00
Romain Guy
ea3763c267 Fix dpad nav: go left/right when dpad is moved and dots are focused.
Bug #2359364
2010-01-11 18:02:04 -08:00
Joe Onorato
24b6fd854f Fix 2257802 - Screen unresponsive when you get a call while moving the shortcuts or widgets on home screen 2009-11-12 13:49:09 -08:00
Joe Onorato
a30ce8e6b2 Bug 2231692 - Turn off launcher2 logging. 2009-11-11 09:24:37 -08:00
Joe Onorato
87467d3a21 Fix 2246713 - Bad offset when picking up a widget for the first time. 2009-11-08 14:36:43 -05:00
Joe Onorato
2e5c432a0a Launcher2: fix 2162230 - Can't add app shortcuts from 3D All Apps 2009-10-06 12:34:42 -07:00
Joe Onorato
e048e8a8ef Now that touch events can go off the edge of the screen, clamp
them to the screen size for hit testing purposes while dragging.
2009-09-25 10:39:17 -07: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
9c1289cb3b Redo the launcher loading code and put the real app icons into rollo. 2009-08-24 14:58:44 -04:00
Joe Onorato
7c312c15e3 Move the all apps view back into the window with the workspace. 2009-08-16 15:03:36 -04: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