diff options
author | Michael Jurka <mikejurka@google.com> | 2010-09-03 14:15:02 -0700 |
---|---|---|
committer | Michael Jurka <mikejurka@google.com> | 2010-09-13 15:16:10 -0700 |
commit | 5f1c509d5ad1954a7e38e77db4d5f27c7345fd39 (patch) | |
tree | 94f434edef0031fe54ae4fa2bbfee518241e982f /src/com/android/launcher2/SmoothPagedView.java | |
parent | 686e136f5a1d4e1bb3a69b9b2634fc51221a3245 (diff) | |
download | packages_apps_trebuchet-5f1c509d5ad1954a7e38e77db4d5f27c7345fd39.zip packages_apps_trebuchet-5f1c509d5ad1954a7e38e77db4d5f27c7345fd39.tar.gz packages_apps_trebuchet-5f1c509d5ad1954a7e38e77db4d5f27c7345fd39.tar.bz2 |
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
Diffstat (limited to 'src/com/android/launcher2/SmoothPagedView.java')
-rw-r--r-- | src/com/android/launcher2/SmoothPagedView.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/launcher2/SmoothPagedView.java b/src/com/android/launcher2/SmoothPagedView.java index 3218349..73e147a 100644 --- a/src/com/android/launcher2/SmoothPagedView.java +++ b/src/com/android/launcher2/SmoothPagedView.java @@ -110,7 +110,7 @@ public abstract class SmoothPagedView extends PagedView { whichPage = Math.max(0, Math.min(whichPage, getChildCount() - 1)); final int screenDelta = Math.max(1, Math.abs(whichPage - mCurrentPage)); - final int newX = whichPage * getWidth(); + final int newX = getChildOffset(whichPage) - getRelativeChildOffset(whichPage); final int delta = newX - mScrollX; int duration = (screenDelta + 1) * 100; |