From 93d87ff509cabdad9f02f379df7eba01a44969c7 Mon Sep 17 00:00:00 2001 From: Bobby Georgescu Date: Thu, 23 Aug 2012 13:05:53 -0700 Subject: 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 --- src/com/android/gallery3d/app/AlbumSetPage.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/com/android/gallery3d/app/AlbumSetPage.java') diff --git a/src/com/android/gallery3d/app/AlbumSetPage.java b/src/com/android/gallery3d/app/AlbumSetPage.java index 5d7d0850a..a5a24810a 100644 --- a/src/com/android/gallery3d/app/AlbumSetPage.java +++ b/src/com/android/gallery3d/app/AlbumSetPage.java @@ -109,12 +109,17 @@ public class AlbumSetPage extends ActivityState implements private int mLoadingBits = 0; private boolean mInitialSynced = false; + @Override + protected int getBackgroundColorId() { + return R.color.albumset_background; + } + private final GLView mRootPane = new GLView() { private final float mMatrix[] = new float[16]; @Override protected void renderBackground(GLCanvas view) { - view.clearBuffer(); + view.clearBuffer(getBackgroundColor()); } @Override @@ -369,7 +374,8 @@ public class AlbumSetPage extends ActivityState implements mConfig = Config.AlbumSetPage.get((Context) mActivity); mSlotView = new SlotView(mActivity, mConfig.slotViewSpec); mAlbumSetView = new AlbumSetSlotRenderer( - mActivity, mSelectionManager, mSlotView, mConfig.labelSpec); + mActivity, mSelectionManager, mSlotView, mConfig.labelSpec, + mConfig.placeholderColor); mSlotView.setSlotRenderer(mAlbumSetView); mSlotView.setListener(new SlotView.SimpleListener() { @Override -- cgit v1.2.3