Commit Graph

143 Commits

Author SHA1 Message Date
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
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
Adam Cohen 9c4949e12c ->Added attribute to PagedView to specify spacing between
adjacent pages
->Fixing crash on phones
Change-Id: I8ea97ce6d569c59b6d51b544dc10b0310d294b43
2010-10-05 14:08:00 -07:00
Michael Jurka 16fed41e5e - getting rid of "dimmed" effect for icons and widgets
- re-enabling drawing cache for icons and widgets
2010-10-01 16:12:03 -07:00
Adam Cohen f34bab59fc -Added 3D effect to home screen scrolling
-Added background outline fade in / out
-Modified the feel of scrolling: now using quintic
 interpolator and modified the influence of
 scroll velocity

Change-Id: Ifddcab5223ac20be7d9f800ccf09442d9b4db781

Conflicts:

	src/com/android/launcher2/CellLayout.java
2010-09-30 14:15:10 -07:00
Michael Jurka fc9f07d425 Fix: on move, items are now dropping where the
visualization says they will drop

Change-Id: I5b1d3d713991468c1b17458356b2ff1a630aa9b9
2010-09-30 13:23:21 -07:00
Michael Jurka c6ee42e25f Fix: dragging items to adjacent screens would
not properly show the available/unavailable cells

Change-Id: I47d1405315db01f87dfcce3536295d2a0d0dc444
2010-09-30 13:12:29 -07:00
Michael Jurka 60587efe1a Slight tweak to the id generation code for items
on home screen
2010-09-30 11:06:13 -07:00
Michael Jurka 845ba3b17b Fix: crash on portrait/landscape switch due to
duplicate View ids

Change-Id: I69d09823d4825dadd7f3e119f9248140256f91b3
2010-09-30 10:54:28 -07:00
Adam Cohen 0fb7db5a37 Fixing boot stall.
Revert "-Added 3D effect to home screen scrolling"

This reverts commit 9415d87eda.

Change-Id: Ib8d6602f5d82884eb1f6cc44c0cc71cc563a3a59
2010-09-29 13:04:32 -07:00
Patrick Dubroy de7658b5e0 Show crosshairs when dragging items around the workspace. 2010-09-29 11:14:28 -07:00
Adam Cohen 9415d87eda -Added 3D effect to home screen scrolling
-Added background outline fade in / out
-Modified the feel of scrolling: now using quintic
 interpolator and modified the influence of
 scroll velocity

Change-Id: Ifddcab5223ac20be7d9f800ccf09442d9b4db781
2010-09-28 16:56:10 -07:00
Michael Jurka 7ded67cd64 fixed: adding app shortcuts caused overlapping
icons
2010-09-28 13:57:39 -07:00
Michael Jurka 6a1435d78d Fix issue where items could not be moved back
to their original positions

This also fixes crash 3038168

Change-Id: I4142a1fe32954e76e6ab02ea09f50d4bdefec67c
2010-09-27 18:35:18 -07:00
Michael Jurka 28750fba6a fixed minor code review issues from change I0280c3be
(it was submitted early accidentally)

Change-Id: I3753366b4d5e1dc228baf02eba27a2c0d8fa42cf
2010-09-24 18:34:23 -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 f79d5265c6 removing dead code 2010-09-17 10:59:31 -07:00
Brad Fitzpatrick 98cf129f80 am 73013bf9: Make LauncherModel.deleteItemFromDatabase write to disk async.
Merge commit '73013bf94f49ffbacba2b8300f6a2dd4eeebbd13'

* commit '73013bf94f49ffbacba2b8300f6a2dd4eeebbd13':
  Make LauncherModel.deleteItemFromDatabase write to disk async.
2010-09-15 12:17:49 -07:00
Brad Fitzpatrick 73013bf94f Make LauncherModel.deleteItemFromDatabase write to disk async.
Fixes a bunch of StrictMode violations and removes TODOs.

Change-Id: I886bd071d4a8336c228d29c517a8ffc5223c0623
2010-09-14 12:33:35 -07:00
Adam Cohen e54cec82a9 Re-adding the perspective shift on mini screens
Change-Id: If4acc0cbfc66305e9abe024529a69553df2f9ef2
2010-09-13 18:19:55 -07:00
Michael Jurka 5f1c509d5a supporting swipable home screens on xlarge devices
- icons and widgets on home screens can be "dimmed"
- celllayout no longer renders a dimmed version of itself, but instead its children make dimmed versions of themselves
- celllayout no longer always takes up full size of workspace, in landscape mode 
neighboring screens (celllayouts) are visible
- on xlarge devices, in landscape mode side screens are "dimmed"
- moved holographic outline helper to its own file
- fixed bug where mini-screens were still able to scroll left/right

Change-Id: I9e85ab4147edfae1e7525c3d11d42be3fabf4f6d
2010-09-13 15:16:10 -07:00
Adam Cohen a985e598f6 Applying fake perspective transform to the home screen previews
Change-Id: I2092fd963804eceaf0117bcb6d118d83e0da3573
2010-09-09 11:58:09 -07:00
Patrick Dubroy 2b9ff37edb When an app is chosen in All Apps, tapping a workspace screen adds it to that screen. 2010-09-08 10:38:54 -07:00
Chet Haase b1254a6bdb Animation classes renamed
Change-Id: I96ecb77357a914a746a5989c909246620b977b10
2010-09-08 08:51:12 -07:00
Michael Jurka 0142d49e13 Changed Workspace to inherit from PagedView
- adds support for seeing dimmed side-pages on
home
- adds workspace support for pages that are
smaller than workspace itself
- removing a lot of code duplicated between
PagedView and Workspace
- tested new Workspace on Nexus One, and perf.
was indistinguishable from old Workspace in my
tests

Change-Id: Ie33ab4e8b35ac01b22894cff66650bb0ece8dfcc
2010-09-01 14:54:34 -07:00
Joe Onorato 6b4adbc055 DO NOT MERGE - Allow the workspace to swipe while it's loading.
You still can't modify the contents of the workspace while it's loading,
but this makes it appear a little bit more responsive.  Launching apps
while the launcher is loading has always been possible.

Bug: 2748595
Change-Id: Iaf203c7358647a9b2211bb7386579ae75b82a698
2010-09-01 12:15:10 -07:00
Joe Onorato fdf5fd63c6 DO NOT MERGE - Allow the workspace to swipe while it's loading.
You still can't modify the contents of the workspace while it's loading,
but this makes it appear a little bit more responsive.  Launching apps
while the launcher is loading has always been possible.

Bug: 2748595
Change-Id: Icf252beaee5b801b30216202ce6032c4d565cde3
2010-08-31 12:02:32 -07:00
Patrick Dubroy df7c3a7853 Fix problems with unanimated toolbar transitions.
Rather than creating all the Animators and attempting to execute the
transitions immediately, add a separate code path for all the
unanimated cases.

Change-Id: Id615180bd0d2ed5cc60d8df351c00e8d7b13c68d
2010-08-26 18:17:08 -07:00