Commit Graph

500 Commits

Author SHA1 Message Date
Michael Jurka b8fffe7639 Merge "Fix wallpaper offsets for live wallpapers on tablet" 2012-02-29 14:34:33 -08:00
Michael Jurka 9551537718 Fix wallpaper offsets for live wallpapers on tablet
we were giving values that weren't an even fraction
(ie n/4 where n = the screen # we're on) and
therefore live wallpapers couldn't tell when we
were fully settled on one of the workspace screens

Bug# 6029132
2012-02-29 14:19:33 -08:00
Adam Cohen f0777b9d7a Fixing drag and drop framerate regression in workspace
-> Animating the alpha on workspace during drop was slowing things down.
   Instead we modify the alpha on the individual CellLayoutChildren objects
   which have hardware layers, so modulating their alpha is cheap.

Change-Id: Id31e47cd05d593d2fef0ab28e15a9d4e11ed1aa1
2012-02-28 14:23:50 -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
Winson Chung 9b0b2fefb2 Fixing issue where icons can't be clicked during launcher transition.
- Also tweaking the workspace fade in/out interpolators

Change-Id: I65d1aefbead13f662c84a2f1178c73615153fd5a
2012-02-24 13:04:26 -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 867ca62c0e Fading out workspace when dragging to higlight dragged object.
Change-Id: I540ce145168a65a029d820d6c14a1e3070f8a5b0
2012-02-23 10:32:03 -08:00
Winson Chung 7044272f18 Allow touches to fall through AllApps nearing end of transition (Bug: 5991846, 6016062, 5991846)
- Also updating mTransitionProgress so control when drops succeed

Change-Id: I2f672c64f0a87249dcf7d254f963b8b2710c849f
2012-02-17 11:14:29 -08:00
Michael Jurka bed61d22bd Revert "Revert "Speed up All Apps -> Workspace transition""
- also, undo enabling hardware layers for
    scroll indicator, which could have caused
    slowness
- fix bug where scroll indicator was not seen
    after the first visit to all apps
- eliminate a some needless hardware layer redraws
- making items under All Apps invisible when we're
    in All Apps
- making workspace spaces invisible if their alpha is 0
    to prevent more hardware layer rebuilding

This reverts commit 9753d13c7b.

Change-Id: Ib908ae0b456b2d4b8a171991a95f20aea4749da1
2012-02-15 20:22:50 -08:00
Adam Cohen ef3dd6efe0 Fixing bug where widget preview wasn't fully updated upon drop
-> The prebound widget is now added to the DragLayer to ensure
   that it goes through all necessary measure/layout/attach etc.

Change-Id: I53ca32e88fcbc2211d2747c3b067816c0d518e30
2012-02-14 20:55:35 -08:00
Adam Cohen 038085598c Merge "Fixing annoying bug where widget would drop to side page" 2012-02-14 16:45:40 -08:00
Adam Cohen 82ac8a2488 Fixing annoying bug where widget would drop to side page
Change-Id: I7e8bf298e01666fe29abc322b45f2538569c5ed9
2012-02-14 16:27:49 -08:00
Winson Chung 2210d2ad0c Merge "Animating the drag view scale up and down when dragging items." 2012-02-14 14:59:30 -08:00
Winson Chung a61dc4290d Fixing issue where smallest screen dim was not taking dpi into account.
Change-Id: I1efacf693200f490c506050ce36403db224b5846
2012-02-14 14:45:57 -08:00
Winson Chung 54d9fc2830 Merge "Revert "Speed up All Apps -> Workspace transition"" 2012-02-14 13:38:35 -08:00
Michael Jurka 9753d13c7b Revert "Speed up All Apps -> Workspace transition"
Temp fix for 5976264

This reverts commit 9433fa7eba.

Change-Id: Ic49ffc818b9b233b3717b52a5f77eaac1e001f5b
2012-02-14 13:36:59 -08:00
Adam Cohen 1b36dc3f2b Fixing bugs with new widget adding
-> widget ids were being reused in some cases
-> widgets could be added before springloaded mode was entered

Change-Id: Iaf3bffc49d4ec2de4b63db1b5cfb52b8544e9c2b
2012-02-13 19:50:10 -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
Adam Cohen ed66b2bac7 Improving widget transitions:
-> When a widget has no configuration activity, we bind
   and inflate it when the user picks it up. This allows
   us to smoothly transition between it's preview and
   some actual state of the widget when it is dropped.
-> When a widget has a configuration activity, we delay
   the above process until the configuration activity
   has been run at which time we transition between
   the preview and the actual widget.

Change-Id: I5265cd98400d70e5e75c3dcd21e322ed0b352d7b
2012-02-13 13:30:32 -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
Adam Cohen 6af9af057f Fix issue where launcher didn't return to workspace on screen off (issue 5628744)
Change-Id: Ic058cf7a803d2fe7be98325138cd5bd52a96cd9c
2012-02-02 15:41:45 -08:00
Winson Chung b33e05fa50 Fixing two regressions in which side pages were not drawn or oriented correctly.
Change-Id: Ib936d7701c8962fc04e6fed2e3d624291fe8fc46
2012-01-30 17:20:47 -08:00
Winson Chung d7654c416c Merge "Showing page indicator while dragging (Bug: 5117192)" 2012-01-24 13:25:34 -08:00
Winson Chung 1afedc379f Showing page indicator while dragging (Bug: 5117192)
Change-Id: I3c8180b2166f3961fbb9529c5de187b4b7b561cf
2012-01-24 13:19:55 -08:00
Winson Chung e4e506660b Locking pressed state for AllApps icons.
- Setting workaround for transition state bug until b/5897600 is fixed.

Change-Id: Icb29a4cd7bfaf527a9db5b853e7fb24c63b58b30
2012-01-24 13:15:23 -08:00
Michael Jurka 28c1854896 Merge "Speed up All Apps -> Workspace transition" 2012-01-23 07:24: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
Michael Jurka 9433fa7eba Speed up All Apps -> Workspace transition
- use HW layers on Views whose alpha is faded
- don't run animation end code until the entire launcher
transition is finished
- be more aggressive about making workspace pages visible
after an animation, potential fix for Bug #5867739

Change-Id: I52a088e551c1636a67725629640286b885070f32
2012-01-20 06:50:06 -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 7372c59277 Remove use of setFast* properties
Change-Id: Ibfae0eed65d384789929829d6a24379561934eb4
2012-01-16 04:21:35 -08:00
Michael Jurka 7407d2a16e Using ViewPropertyAnimator for animations
Replacing some use of fastInvalidate/setFast*
methods with ViewPropertyAnimator animations

Change-Id: Id5a8934b38d9ae3a95b6dccb431f9787839d2927
2012-01-10 01:53:59 -08:00
Michael Jurka 80c69853d6 simplifying code to prevent drawing off-screen
On certain graphics drivers, if you draw to a off-
screen buffer that's not used, it can lead to
poor performance. We were running into this in 
launcher; when setChildrenLayersEnabled was called
on a CellLayout, that triggered a re-draw of that
CellLayout's hardware layer, even if that
CellLayout wasn't visible. This CL changes
PagedView so that pages that aren't going to be
rendered are set to View.INVISIBLE, preventing
re-drawing of their hardware layer.
2011-12-16 14:26:24 -08:00
Michael Jurka 58e8b25c59 Merge "Small optimizations for the All Apps transition" 2011-12-15 13:42:02 -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
Adam Cohen 6441de0ec2 Fixing subtle animation jank when dropping icon on adjacent page
-> The old path of the icon wasn't correct from a motion standpoint

Change-Id: Icb4b06b5cd5649e983d43953ff369d1d8d8cdee2
2011-12-14 14:38:06 -08:00
Adam Cohen 8a18afc4aa Fix issue where crosshairs wouldn't disappear (issue 5190654)
Change-Id: Id5fc7257021b20680fec1f2c215d95dac425d4d4
2011-12-13 17:38:21 -08:00
Michael Jurka 2a4b1a809c Make All Apps<-->Workspace transition smoother
- grouping workspace/all apps anims into one
animator set, prevents blip when one of them ends
early and its end anim handler does lots of work
mid-animation
- updating pivots for all apps zoom if layout
changes
- avoid running unnecessary animations on
workspace pages
- prevent unnecessary reloading of pages in
All Apps

Change-Id: I53a75f7c4c7d254057e2f8f4fd17711e8862256d
2011-12-12 15:30:58 -08:00
Adam Cohen 265b9a6654 Scaling PagedView fling constants by density (issue 5594666)
Change-Id: I3f37b820fb9864091a02a51b354f10f9a0fa2ac7
2011-12-07 14:37:18 -08:00
Michael Jurka 7e38964c43 Merge "Clean up unused code and import declarations" into ics-mr1 2011-11-28 18:48:04 -08:00
Winson Chung e96e5cb768 Fixing a few landscape issues.
- Fixing issue where widgets/icon names from side pages show in landscape (Bug 5665226)
- Fixing issue where the workspace was rendering over the hotseat in landscape (Bug 5665226)
- Fixing regression where the market button had no press feedback

Change-Id: Idcd890fdddab2d463195c9b3000fe7a0ab357200
2011-11-28 16:24:54 -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 8171d8ce48 Merge "Fixing issue where shortcut holographic outlines were different than widgets. (Bug 5659891)" into ics-mr1 2011-11-23 17:00:17 -08:00
Winson Chung 65f9e9d45b Merge "Preventing springloaded mode from snapping back due to timeout. (Bug 5649189)" into ics-mr1 2011-11-23 15:38:42 -08:00
Adam Cohen ea49c1c861 Merge "Prevent the creation of Shorcuts with null intents (issue 5629292)" into ics-mr1 2011-11-23 14:37:59 -08:00
Winson Chung 1120e03557 Fixing issue where shortcut holographic outlines were different than widgets. (Bug 5659891)
- Also fixing regression where widget drag previews weren't slightly translucent

Change-Id: I5370819589a2fc839df8742cda5156aec986b47d
2011-11-22 17:00:50 -08:00
Adam Cohen d919882006 Prevent the creation of Shorcuts with null intents (issue 5629292)
Change-Id: I54fbad2d4af27c6d8fc0d79c33e890298a3db4dc
2011-11-22 16:51:26 -08:00
Winson Chung 96ef409ebd Preventing springloaded mode from snapping back due to timeout. (Bug 5649189)
- Also allowing drop on all apps button to cancel a drag

Change-Id: I27252bd34c591882d8c5f80389d8fd6f4f6e4791
2011-11-22 14:21:08 -08:00
Adam Cohen 026df005fb Merge "Fixing bug where drag would sometimes get cancelled inadvertently" into ics-mr1 2011-11-21 15:11:43 -08:00