summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/ui/AlbumSetSlotRenderer.java
diff options
context:
space:
mode:
authorBobby Georgescu <georgescu@google.com>2012-08-23 13:05:53 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-08-24 17:12:44 -0700
commit93d87ff509cabdad9f02f379df7eba01a44969c7 (patch)
tree1252bcd153ffff5f94f2b4608872a950c6fb21de /src/com/android/gallery3d/ui/AlbumSetSlotRenderer.java
parent0b6bca8513ae49dacbfdbd9c800ba9f542b6b68b (diff)
downloadandroid_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/AlbumSetSlotRenderer.java')
-rw-r--r--src/com/android/gallery3d/ui/AlbumSetSlotRenderer.java15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/com/android/gallery3d/ui/AlbumSetSlotRenderer.java b/src/com/android/gallery3d/ui/AlbumSetSlotRenderer.java
index cee36d969..bdc0e676e 100644
--- a/src/com/android/gallery3d/ui/AlbumSetSlotRenderer.java
+++ b/src/com/android/gallery3d/ui/AlbumSetSlotRenderer.java
@@ -28,7 +28,7 @@ public class AlbumSetSlotRenderer extends AbstractSlotRenderer {
@SuppressWarnings("unused")
private static final String TAG = "AlbumSetView";
private static final int CACHE_SIZE = 96;
- private static final int PLACEHOLDER_COLOR = 0xFFDDDDDD;
+ private final int mPlaceholderColor;
private final ColorTexture mWaitLoadingTexture;
private final GalleryActivity mActivity;
@@ -52,20 +52,23 @@ public class AlbumSetSlotRenderer extends AbstractSlotRenderer {
public int leftMargin;
public int iconSize;
public int titleRightMargin;
+ public int backgroundColor;
+ public int titleColor;
+ public int countColor;
+ public int borderSize;
}
public AlbumSetSlotRenderer(GalleryActivity activity, SelectionManager selectionManager,
- SlotView slotView, LabelSpec labelSpec) {
+ SlotView slotView, LabelSpec labelSpec, int placeholderColor) {
super ((Context) activity);
mActivity = activity;
mSelectionManager = selectionManager;
mSlotView = slotView;
mLabelSpec = labelSpec;
+ mPlaceholderColor = placeholderColor;
- mWaitLoadingTexture = new ColorTexture(PLACEHOLDER_COLOR);
+ mWaitLoadingTexture = new ColorTexture(mPlaceholderColor);
mWaitLoadingTexture.setSize(1, 1);
-
- Context context = activity.getAndroidContext();
}
public void setPressedIndex(int index) {
@@ -149,7 +152,7 @@ public class AlbumSetSlotRenderer extends AbstractSlotRenderer {
entry.isWaitLoadingDisplayed = true;
} else if (entry.isWaitLoadingDisplayed) {
entry.isWaitLoadingDisplayed = false;
- content = new FadeInTexture(PLACEHOLDER_COLOR, entry.bitmapTexture);
+ content = new FadeInTexture(mPlaceholderColor, entry.bitmapTexture);
entry.content = content;
}
drawContent(canvas, content, width, height, entry.rotation);