Commit Graph

170 Commits

Author SHA1 Message Date
Adam Cohen e0f66b5469 Modifying feel of scrolling / overscroll
-Modified overscroll on Workspace
-Added overscroll effectiveness curve to PagedView
-Modified the feel of scrolling in Workspace, AllApps,
 and Configure. Made it more sensitive to velocity.

Change-Id: I7f705e267a536c742fbb3b6556648bbf993bdd2f
2010-11-24 15:47:13 -08:00
Michael Jurka 3d79192da7 Don't allow drags to fully occupied home screens
Change-Id: Ib9f6732f2d1d35fc4496c3d2257397ddf1f7f367
2010-11-24 14:51:58 -08:00
Michael Jurka 9c6de3d7c3 ignore drop position when dragging items to small screens
- adding plumbing for future support for spring-loaded adding of items
- also, additional minor code cleanup

Change-Id: Idb313d4cd125b4f0b315a845dc8fb853cb48885e
2010-11-24 14:48:32 -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
Winson Chung f135c6c364 Tweaking background protection animation to match transition animations.
Change-Id: I9e0c93c5b43fe117a0fb7c1ab1c4167cc47125c4
2010-11-18 16:39:33 -08:00
Adam Cohen 68d739365b Adding overscroll to Workspace, AllApps and Customize
-Also modified the background alpha interpolation during scrolling

Change-Id: I68db8fbe80f720c507ab3208d8b3dcd8aa4f2081
2010-11-18 16:32:19 -08:00
Winson Chung b4b7fa7c03 Proper fix for missing resource in other devices.
Change-Id: Ie164e42a4c5efce763160dae86b8fe3a9da51fd9
2010-11-18 14:39:11 -08:00
Winson Chung 9171e6d8a2 Adding initial background protection to AllApps/Customize drawer.
Change-Id: Id5e2b2dd82c2ee82526ae5c5179345275af246c6
2010-11-17 17:39:58 -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
Adam Cohen 61033d3d86 Polishing home transitions
-Modified interpolation / duration and some other characteristics
 of the transitions between home and AllApps / Customize

Change-Id: I9154800d500b394e4f826f6c88c14fb6e0164828
2010-11-16 17:21:41 -08:00
Adam Cohen eed565d512 Whitespace fix
Change-Id: Ia6b328defddc002ea0acb028d452bdd97ed3d4cc
2010-11-15 11:30:05 -08:00
Adam Cohen cbbaf9862a Tweaking transitions between AllApps / Customize and Home
Change-Id: Iaf1c235fd6122d871a6e038ab83b8deb5435b018
2010-11-15 11:18:33 -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
Winson Chung bbc60d8e79 Fixing various small bugs with launcher
- Items added from customization tray add from top left now
- Fixing issue where wallpaper tab was not showing
- Workaround for the extra pixel line showing in homescreen drag icons
- Speeding up animations for tab transitions and clicking

Change-Id: I865531bb4cf896320a9e2ff6cef08bed221a2294
2010-11-11 17:20:48 -08:00
Winson Chung 580e277481 Refactoring the drag event handling to provide more upfront validation of drag events.
Change-Id: I1d54e7f073e8ea00c61634b8f25b957b3ea3769c
2010-11-11 16:37:01 -08:00
Adam Cohen ddb821981e Making current screen background always transparent
Change-Id: I3cc61f85c36f80a71d60228f5f8570758b1b0e3b
2010-11-11 13:39:35 -08:00
Adam Cohen ded9f8d865 Adding auto-advance to launcher
Change-Id: I96c88d35399057ccddc71dc93b974a39241a13da
2010-11-10 16:55:46 -08:00
Patrick Dubroy 0207c52247 Draw glow along screen edge when dragging in portrait. 2010-11-03 22:12:53 -07:00
Winson Chung 68846fdce6 Initial changes to allow resolution of arbitrary clip data to widgets that support them.
Change-Id: Id5dfa8436a5bf6eb7bd300ec603911a9d3698de3
2010-11-03 19:48:17 -07:00
Patrick Dubroy f24312876b Fix bug with views disappearing after dragging. 2010-11-02 14:51:33 -07:00
Michael Jurka c9a961952d Using hdpi icons in Launcher
Known issue: Default activity icon is still showing up as small
2010-11-01 23:06:54 -07:00
Winson Chung 7da1025bd7 Layout and spacing changes for AllApps/Customization drawer
- Also fixing issue where preview images in the customization drawer were not being scaled down

Change-Id: I83d1abf019d591954204b87a437eac2ff916dd54
2010-11-01 16:10:49 -07:00
Patrick Dubroy 8ae3a62e2e Add snap-back animation when dropping an item on a full page. 2010-11-01 13:50:10 -07:00
Patrick Dubroy 9438336724 Fix NPE when dragging an item to a full home screen 2010-10-29 15:03:34 -07:00
Michael Jurka 3c4c20fbe6 Fix: switching states during animations was broken
- cancelling state animations on home screens before starting new ones
- temporary workaround for the fact that onAnimationEnd is not called immediately when an animation is cancelled
- forcing all apps zoom-in animation to complete if it's cancelled

Change-Id: I3eb011f689050692e8d95f2736e01ab5420f722e
2010-10-29 14:52:03 -07:00
Patrick Dubroy cd68ff5b88 Move drop anim into the Workspace to prevent clipping issues 2010-10-29 13:52:42 -07:00
Michael Jurka a997ac2666 Setting correct active page when shrinking
Bug: 3130373

Change-Id: I5fa8772bd557b828aaac0d6433f1ff148b0d9f57
2010-10-29 12:18:10 -07:00
Winson Chung 55cef262f9 Adding initial support for dropping widgets with custom configuration data.
Change-Id: I4a7ba51783b27e544e9a21882bc7cd582b3b43e0
2010-10-28 16:08:46 -07:00
Adam Cohen 1b0aaac0b3 -> Made outline of current page fade out
-> Added new assets for homescreen outlines

Change-Id: Ic19b32a749fd4109bd5601c8b220759aab56603c
2010-10-28 11:45:12 -07:00
Winson Chung a9abd0e0bd Initial changes to allow dragging external shortcuts to launcher using the same InstallShortcut intent.
Change-Id: I21b57115429ed37d604084ae01308d1d3f33ee7e
2010-10-27 18:35:04 -07:00
Winson Chung 2858f889a5 Leaving mini-workspaces in place after dropping from AllApps.
Change-Id: Iae4aba8b38e674ccda978b8280d015d4d8247147
2010-10-25 11:02:37 -07:00
Michael Jurka 883f55b1d2 Correctly preserve state on orientation changes
Bug: 3049975
2010-10-21 15:47:22 -07:00
Winson Chung ef0066b52d More spacing changes to Customization Drawer.
Change-Id: Ie51a0a5da6169b0651e9f70cfb28450254cf0df1
2010-10-21 14:32:20 -07:00
Michael Jurka f3ca3ab695 Fix bug that allowed multiple items in one cell
Fixed issue where opening a folder allowed items to be placed on any cell, even if it was occupied.

Bug: 3094164

Change-Id: I392e7236f9cd7ea0b09f36e249d2a57c9934dc8e
2010-10-21 11:30:28 -07:00
Winson Chung df4b83dd9d More spacing changes for AllApps.
- Also testing a simple scale of existing icons in lieu of high res icons.

Change-Id: Ib9758064536cd1b1704344ea885bccdc93dd3466
2010-10-20 18:39:54 -07:00
Patrick Dubroy 8e58e91606 Various cleanups in the drag viz code.
Most importantly:
- Don't allocate a new Paint object in CellLayout.onDraw
- Scale holographic outlines based on the screen density
2010-10-20 14:37:49 -07:00
Patrick Dubroy ce34a9768b Animate items into place when dropping on home screen 2010-10-19 10:42:24 -07:00
Michael Jurka 18014791be Added bounce animation when item added to screens
Change-Id: I87d9e8545e2de588d083b48991d932eb904f6e3a
2010-10-18 18:29:21 -07:00
Michael Jurka 1adf5391a3 Fixing a bug where you could scroll the mini screens
Change-Id: I3638618cb5f4ec2705955fda994fd6aff42fd70f
2010-10-18 18:16:46 -07:00
Patrick Dubroy 08ae2ec484 Fix bug drag viz & hover state
Change-Id: I6b40d4dd43a2ee0c127df938375870347faeb5f6
2010-10-15 14:12:36 -07:00
Michael Jurka d718d6a7ba fix setting/unsetting hover on thumbnailed screens
cleaned up dragenter / dragexit events so they're only received by CellLayouts if the workspace isn't small

ignoring enter/exit scrollarea events when workspace is small
2010-10-14 15:45:30 -07:00
Chet Haase 472b281d5c Updating code to use new non-generified animator APIs
Change-Id: Ie1928a22f774b226d90fa0918f61dba35d183dd6
2010-10-14 10:51:21 -07:00
Joe Onorato 4be866d3a1 fix 3029324: Implement new drag feedback
Add "shrinkwrap" icon outlines to visualize where the item will land
2010-10-13 12:01:04 -07:00
Winson Chung b0b2e6f588 Tweaking spacing and layout of AllApps/Customize in portrait.
- Also added workaround for tab label not being initially selected
- Added fix for initial layout of PagedViews preventing side pages from having proper alpha
- Marking widget dims format string as not translatable

Change-Id: I74a5410b88e2766816a87b14e64058b4288c214d
2010-10-12 18:27:22 -07:00
Michael Jurka c86756c201 Fixed 3073371: Home screen locked after app launch
Change-Id: Iedac4b94d20cc3352aa247c58978a8f60df1a09f
2010-10-10 15:27:31 -07:00
Michael Jurka 3e7c763453 updated Workspace thumbnail behavior
- in All Apps mode, fade thumbnails completely
- while dragging, have thumbnails re-appear
- while dragging, give screen thumbnails that can accept drops a different appearance (green outline instead of blue)

Change-Id: I72ddf8a0f1947d35ef11514b7d4eea9ae5eee6e2
2010-10-10 15:03:45 -07:00
Michael Jurka 4516c11039 Fixed dragging over mini-screens
- during dragging, finding the mini-screen closest to the touch point

Change-Id: I4d967803b85de8af3208511c60c1f3bf5691718f
2010-10-08 15:06:43 -07:00
Adam Cohen 21f12b52a5 -Changing page scroll click regions
-Cleaning up code for page rotations

Change-Id: I046784b108186b6627ce0df3aed57d70c303ef23
2010-10-07 18:20:49 -07:00
Michael Jurka c0e8fcae49 Fixing state transition bugs
- explicitly keeping track of state in Workspace
- cancelling animations before starting new ones
- adding additional state variable for workspace for in-progress transitions
- updating Scroller object if we jump to a certain location

Change-Id: I5ddf51bae543ec89b2a44ab651d7269eb4859a6d
2010-10-06 17:54:12 -07:00