summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/ui/BasicSettingPopup.java
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2010-11-19 14:59:33 +0800
committerWu-cheng Li <wuchengli@google.com>2010-11-19 15:32:18 +0800
commit33896b2aaa53a67aa88125e818ceb20292d5f701 (patch)
tree7034f770c3b3a77ecaa1dad47a73194cda64a345 /src/com/android/camera/ui/BasicSettingPopup.java
parentf14fbd59355b6753322914092e9c9ea00aee5e30 (diff)
downloadLegacyCamera-33896b2aaa53a67aa88125e818ceb20292d5f701.zip
LegacyCamera-33896b2aaa53a67aa88125e818ceb20292d5f701.tar.gz
LegacyCamera-33896b2aaa53a67aa88125e818ceb20292d5f701.tar.bz2
Use holo.dark background on popup windows.
Change-Id: I1ed1dd3d23270d8da29bc446fa121067b98bb48e
Diffstat (limited to 'src/com/android/camera/ui/BasicSettingPopup.java')
-rw-r--r--src/com/android/camera/ui/BasicSettingPopup.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/com/android/camera/ui/BasicSettingPopup.java b/src/com/android/camera/ui/BasicSettingPopup.java
index 6f1a834..e27c1c4 100644
--- a/src/com/android/camera/ui/BasicSettingPopup.java
+++ b/src/com/android/camera/ui/BasicSettingPopup.java
@@ -17,6 +17,8 @@
package com.android.camera.ui;
import android.content.Context;
+import android.content.res.Resources.Theme;
+import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.util.Log;
@@ -46,6 +48,14 @@ public class BasicSettingPopup extends LinearLayout {
public BasicSettingPopup(Context context, AttributeSet attrs) {
super(context, attrs);
mContext = context;
+
+ // Use system holo background.
+ Theme dialogTheme = getResources().newTheme();
+ dialogTheme.applyStyle(android.R.style.Theme_Holo_Dialog, true);
+ TypedArray ta = dialogTheme.obtainStyledAttributes(new int[] {
+ android.R.attr.windowBackground });
+ setBackgroundDrawable(ta.getDrawable(0));
+ ta.recycle();
}
public void initialize(IconListPreference preference) {