Commit Graph

216 Commits

Author SHA1 Message Date
Michael Jurka ca99383dae Disable hardware layers for drag views
Also, avoiding allocating paint object every time we swipe
2012-06-29 15:17:04 -07:00
Michael Jurka d51f33a631 Only enable hardware layers on visible workspace pages
Change-Id: Id82fc76d00a188556460d1a78388d46be56c9c4e
2012-06-28 17:32:24 -07:00
Michael Jurka b1daa48fc8 Remove unneeded imports
Change-Id: I96e125c5ddbde7df10847e9514b947c80292ea40
2012-06-25 13:06:43 -07:00
Michael Jurka 2ecf995e0d Remove use of private ValueAnimator api
Change-Id: I455edcd17bda83ab51c2c04fa40e66097a4d6975
2012-06-19 11:44:57 -07:00
Michael Jurka 629758ff08 Remove unnecessary use of some private APIs
Change-Id: Idaba6833ddf4a8615845ca2f643c458bdeb9c403
2012-06-19 10:32:38 -07:00
Adam Cohen 4abc5bdfdf Improve reordering by always using the "push mechanic" if possible (issue 6275309)
Change-Id: I51450c1b1f6b439c87194a6084d82fb9989154a7
2012-05-29 21:27:46 -07:00
Adam Cohen e7587d2f23 Fix issue where reorder animations could leave views in translated state
Change-Id: I75f590c4ba43fec0550bbd003022d5c8309881a3
2012-05-24 18:50:41 -07:00
Adam Cohen d024f9845a Cleaning up some reordering issues:
-> Reorder solution should never change unless target cell changes
-> Simplified code and improved the behaviour when items' jiggle
   animations switch from one direction to another. These transitions
   are now seamless and have no more strange delays.

Change-Id: I35d70f275d622501851328584bfcb46eec91ff3b
2012-05-23 18:57:49 -07:00
Adam Cohen fe41ac641b Fix issue with re-order animation not hinting the correct direction
Change-Id: I5fdf55615fde974c2cc8ae1276031f413713cb10
2012-05-23 14:00:37 -07:00
Adam Cohen 7bdfc9700b Fix a couple small bugs (issue 6539339)
-> Adjusting the character of the 'shake' animation to keep
   a single phase, and instead stagger the animations slightly
-> Fixing issue where widget is not given the size change callback
   if the widget is resized on drop

Change-Id: I9cd9e6cd39009d9e5c70e745812b6ece71b845ee
2012-05-22 16:53:10 -07:00
Brandon Keely faf22e15f1 Ensure that rearranged widgets return to translationY=0
Change-Id: Ic29220624f8103eddfcbcc81d56f355f99322ca0
2012-05-10 16:48:50 -07:00
Brandon Keely f32d71aa50 Merge "Adjusting animations for home screen widget reordering." into jb-dev 2012-05-09 10:37:59 -07:00
Brandon Keely 50e6e565bc Adjusting animations for home screen widget reordering.
Change-Id: Ic019b0db8456159d9577acb9a03e24f0d669869b
2012-05-08 16:28:49 -07:00
Michael Jurka df4c0e25e5 Merge "Don't show the outline on the current page" into jb-dev 2012-05-08 14:30:12 -07:00
Michael Jurka a3d30adbfd Don't show the outline on the current page
- only on sw720dp+ devices

Change-Id: I7253bedbf6dd61c766fe7e9ad861d3a917d37fed
2012-05-08 13:54:21 -07:00
Andrew Flynn de38e42fe8 7" launcher changes.
- Shrink icons in workspace (keeping hotseat size the same)
- Increase width of QSB in landscape
- Move QSB voice button to bottom in landscape

Change-Id: I2c0bad4229484f516005592f2c14da1a4939acca
2012-05-08 11:29:33 -07:00
Romain Guy 8a0bff5e35 Remove unnecessary allocations
This change removes a couple of allocations per frame when the user
is trying to scroll past the end of the workspace. The allocated
object, PorterDuffXfermode, is pretty expensive and creating a new
one on every frame could potentially defeat GL rendering optimizations.

Change-Id: Iebaf579d29ad8f14112c5af8cb5dce8d7f4dfbaf
2012-05-06 13:14:33 -07:00
Andrew Flynn 850d2e7185 Support split status bar in launcher
Change-Id: I2f6687f52e8326f80e84251e39bf6cd6dc9b2f2b
2012-05-02 14:15:00 -07:00
Winson Chung e3e03bcd31 Fixing issue where widgets larger than the workspace were now bounded when dropped. (Bug 6424463);
Change-Id: I8dcabd084d79697933f873d44bb390f608780c3b
2012-05-01 16:26:51 -07:00
Michael Jurka dd13e3d0f9 Use public API to get padding 2012-05-01 12:38:17 -07:00
Adam Cohen a897f397e5 Making launcher update widgets with min/max extents
Change-Id: Iba9325eeb95a8a8256ef6f59f4010aff09767892
2012-04-30 12:07:19 -07:00
Adam Cohen f4bd5792d5 Refactoring dimens for cell size / gap
-> fixing some dimens from previous commit

Change-Id: Ibab49bfb0dc403a67ab88c4ecadc49eb533eae29
2012-04-27 15:05:31 -07:00
Michael Jurka af9504dc00 Removing crosshairs
Bug: 6380576

Change-Id: I26f248fa375ae9ad24417bc55401a08bf4f479a5
2012-04-26 13:55:09 -07:00
Michael Jurka 8b805b1715 Remove use of private APIs
Change-Id: I3e28763075f8e92391796dc009214c9fa8f50008
2012-04-25 16:24:03 -07:00
Michael Jurka 3a9fcedbcd Fix warnings and remove dead code
Change-Id: I574d823fedf4b752c3df5a72599b390f708823ac
2012-04-13 14:52:51 -07:00
Adam Cohen bebf042666 Widget resizing can now displace items
Change-Id: I005c9aebf64b2d01debe59f86a208075d19476ea
2012-04-12 11:25:34 -07:00
Adam Cohen c6cc61d458 Cleanup and refactoring in relation to drag and drop
-> folder creation, adding to folders, reordering, switching pages
-> ensuring parity of dragEnter and dragExit in cell layouts and workspace
   (neither were consistently getting an even number of each)
-> actually enforced above with exceptions -- probably want to
   take these out, but maybe we can leave them in as warnings
-> fixed bug with mapping points to hotseat
-> fixes other bugs with drag and drop

Change-Id: I564568f810f2784d122ec6135012b67c2e8e7551
2012-04-09 11:41:59 -07:00
Adam Cohen ec11405583 Merge "Fixing launcher ANR (issue 6238175)" 2012-03-29 15:05:59 -07:00
Adam Cohen 5b53f29f80 Fixing launcher ANR (issue 6238175)
Change-Id: I6518ea9e6ce8b50a5f2a3b24e909e18c5b1bde51
2012-03-29 15:02:54 -07:00
Adam Cohen 2acce88b5f Fixing crash when dropping item in hotseat (issue 6246039)
Change-Id: I50ad5439127adbb29423116bf0471a970f62e1bf
2012-03-28 19:31:59 -07:00
Adam Cohen b209e634a2 Fixing small bug where final item position might not match preview
Change-Id: I216bbf2b454f92cf02b2807f684054e4dce6a05d
2012-03-27 17:09:36 -07:00
Adam Cohen ea889a294b Fix non-persistence of launcher (broken by reordering changes)
Change-Id: I6fb9cb2257844e642df9b5599188b1cfce35df9b
2012-03-27 16:54:39 -07:00
Adam Cohen 7fbec10b36 Fixing EmptyStackException (issue 6117943)
Change-Id: If5816c654dc1e4d5de1e72804e4cf1e845336a96
2012-03-27 12:42:19 -07:00
Adam Cohen 19f3792523 Implementing spring-back version of reordering
-> If you hover above occupied cells, we try to find a new location
   for the items. The items only remain in the temporary position
   while the drag ivew is over their original position after which
   they animate back.
-> Items in the temporary positions animate in such a way so indicate
   that they are in a temporary state, and in such a way so as to hint
   at where they will return to.

Change-Id: I7537c65228c505afbd2f1c22938cfd9d7719839a
2012-03-26 18:40:56 -07:00
Adam Cohen 6b8a02d63a Fixing animation bug for reordering
Change-Id: Ibb8f53a9beb2ddcacab93507fe7469639e0e0587
2012-03-22 15:15:38 -07:00
Adam Cohen 8baab35b00 Code cleanup + a bit of documentation for reordering
-> in preparation for more substantial changes

Change-Id: I68657af1efc17be66ab973e0815991d3f1697a1f
2012-03-22 13:29:51 -07:00
Michael Jurka a52570f8f9 Eliminate custom alpha handling in CellLayout
Also rename CellLayoutChildren to ShortcutsAndWidgetsView

Change-Id: Ic2ebc5497adb153cc2fce99730cc2c6fbdc101e6
2012-03-20 11:13:05 -07:00
Adam Cohen 47a876d443 Tweaking reordering algorithm -- added "pushing" notion
-> Fixed bug when no available space was found

Change-Id: I90898773d259aa84c89d645a1375f2013a520223
2012-03-19 16:36:44 -07:00
Adam Cohen 482ed823af Initial implementation of CellLayout auto-reordering
Change-Id: Id5b5080e846907a7d9cd6535f6e7285e83a0ff71
2012-03-15 13:48:12 -07:00
Winson Chung eecf02da58 Fixing some issues/regressions related to scaled icons.
- 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
2012-03-08 13:37:46 -08:00
Andrew Flynn 633f1aad55 am 989dc514: am bc239a15: Scale icons down for sw600dp-land mode.
* commit '989dc51400f4511e8411b0f1e6c525c024fbb949':
  Scale icons down for sw600dp-land mode.
2012-03-07 17:04:57 -08:00
Andrew Flynn bc239a1546 Scale icons down for sw600dp-land mode.
Cached icons are statically all the same size, so we need to do
it on the fly.

Change-Id: Iae294ff4668f987db8fe5127bae724bf08363542
2012-03-06 13:31:44 -08:00
Andrew Flynn 826a661d5b resolved conflicts for merge of a3e22d6a to master
Change-Id: I8770574acf86e280a9d15d4309686111260e09d9
2012-03-01 16:26:50 -08:00
Andrew Flynn 0dca1ec414 New small/large screen division for Launcher.
Previously the dp division between the two was set at 600dp
(7" tablets). This has now been bumped up to 720dp
(10" tablets).

Change-Id: I1f0419e504fc3bb606156c1cf6fbe03956274184
2012-02-29 17:30:37 -08:00
Adam Cohen d41fbf5680 When adding or moving a resizable widget, the widget may resize
-> If a widget is resizable, and there is not enough room to add it
   in its current (or default) size, but can be scaled down to fit
   a certain area, it will be resized to fit the available space
-> The resizing is animated using a crossfade and scale between
   the original dragView and the widget rendered in the final size

Change-Id: I75db9dcabecce11598b3ae55f20b96b2ec6b7e87
2012-02-27 17:30:32 -08:00
Michael Jurka 7372c59277 Remove use of setFast* properties
Change-Id: Ibfae0eed65d384789929829d6a24379561934eb4
2012-01-16 04:21:35 -08:00
Michael Jurka afaa05014e Small optimizations for the All Apps transition
- don't set properties in animations if they don't
change
- don't recalculate visible pages on every frame
- don't require scroll indicator to be an
ImageView

Change-Id: I099b29e677da2d0e401f677d47cdb8b5df51224e
2011-12-15 13:27:32 -08:00
Michael Jurka 92f3d46cf3 Clean up unused code and import declarations
Change-Id: If36fd2d99a51b07290b13f697b3ea08d31feb023
2011-11-28 10:51:22 -08:00
Adam Cohen ebea84d1c9 Unifying overscroll btw phone and tablet
-> Using separate assets for removing and uninstalling

Change-Id: I183967c3ca482531ae28f71cd9053b673c6a8d03
2011-11-11 11:38:53 -08:00
Michael Jurka 81efbad05e Reduce unnecessary layout passes
- Also delete unused code
2011-11-10 11:22:48 -08:00