diff options
author | Patrick Dubroy <dubroy@google.com> | 2011-05-19 16:48:48 -0700 |
---|---|---|
committer | Patrick Dubroy <dubroy@google.com> | 2011-05-20 14:03:14 -0700 |
commit | 244d74cb353f1260c4d633e719bf84bb3b6e52bc (patch) | |
tree | b509b59b9fdef5b0f52fba899a4bd57c5c23099b /src/com/android/launcher2/PagedViewCellLayout.java | |
parent | dc4682a47446b38c912a30fe43b6a5c5cb53a367 (diff) | |
download | android_packages_apps_Trebuchet-244d74cb353f1260c4d633e719bf84bb3b6e52bc.tar.gz android_packages_apps_Trebuchet-244d74cb353f1260c4d633e719bf84bb3b6e52bc.tar.bz2 android_packages_apps_Trebuchet-244d74cb353f1260c4d633e719bf84bb3b6e52bc.zip |
Dynamically determine # of rows/cols in All Apps.
Change-Id: Ia8c1b3915325823f7617862e0e4e0db865ea0d5d
Diffstat (limited to 'src/com/android/launcher2/PagedViewCellLayout.java')
-rw-r--r-- | src/com/android/launcher2/PagedViewCellLayout.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/com/android/launcher2/PagedViewCellLayout.java b/src/com/android/launcher2/PagedViewCellLayout.java index 9022cac18..15b155fd9 100644 --- a/src/com/android/launcher2/PagedViewCellLayout.java +++ b/src/com/android/launcher2/PagedViewCellLayout.java @@ -79,6 +79,14 @@ public class PagedViewCellLayout extends ViewGroup implements Page { addView(mHolographicChildren); } + public int getCellWidth() { + return mCellWidth; + } + + public int getCellHeight() { + return mCellHeight; + } + public void allowHardwareLayerCreation() { // This is called after the first time we launch into All Apps. Before that point, // there's no need for hardware layers here since there's a hardware layer set on the |