diff options
author | Bobby Georgescu <georgescu@google.com> | 2012-08-23 13:05:53 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-08-24 17:12:44 -0700 |
commit | 93d87ff509cabdad9f02f379df7eba01a44969c7 (patch) | |
tree | 1252bcd153ffff5f94f2b4608872a950c6fb21de /src/com/android/gallery3d/ui/SlotView.java | |
parent | 0b6bca8513ae49dacbfdbd9c800ba9f542b6b68b (diff) | |
download | android_packages_apps_Snap-93d87ff509cabdad9f02f379df7eba01a44969c7.tar.gz android_packages_apps_Snap-93d87ff509cabdad9f02f379df7eba01a44969c7.tar.bz2 android_packages_apps_Snap-93d87ff509cabdad9f02f379df7eba01a44969c7.zip |
Ongoing reskin of Gallery app
Bug: 7050303
Moved the majority of color settings from hardcoded to
colors.xml in order to allow rapid iteration with UX input.
Started changing some colors and layouts to reflect latest
UX mocks.
Change-Id: I300338e9f75c71f3ed3f36140d16e893387f3184
Diffstat (limited to 'src/com/android/gallery3d/ui/SlotView.java')
-rw-r--r-- | src/com/android/gallery3d/ui/SlotView.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/ui/SlotView.java b/src/com/android/gallery3d/ui/SlotView.java index 88a2e0d3c..1325aecd6 100644 --- a/src/com/android/gallery3d/ui/SlotView.java +++ b/src/com/android/gallery3d/ui/SlotView.java @@ -386,6 +386,7 @@ public class SlotView extends GLView { public static class Spec { public int slotWidth = -1; public int slotHeight = -1; + public int slotHeightAdditional = 0; public int rowsLand = -1; public int rowsPort = -1; @@ -501,7 +502,7 @@ public class SlotView extends GLView { int rows = (mWidth > mHeight) ? mSpec.rowsLand : mSpec.rowsPort; mSlotGap = mSpec.slotGap; mSlotHeight = Math.max(1, (mHeight - (rows - 1) * mSlotGap) / rows); - mSlotWidth = mSlotHeight; + mSlotWidth = mSlotHeight - mSpec.slotHeightAdditional; } if (mRenderer != null) { |