diff options
author | Scott Jackson <daneren2005@gmail.com> | 2012-09-06 23:15:06 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2012-09-06 23:15:06 -0700 |
commit | ded5e86222e26cc80fe70ed5da4cfe0ed8bf8f54 (patch) | |
tree | fb9168ed4d2b66d0ec010a37dd9ea390de2cfab4 /subsonic-android/res | |
parent | a30ae4270e120948892de1b76c77c8c3f8698fd8 (diff) | |
download | dsub-ded5e86222e26cc80fe70ed5da4cfe0ed8bf8f54.tar.gz dsub-ded5e86222e26cc80fe70ed5da4cfe0ed8bf8f54.tar.bz2 dsub-ded5e86222e26cc80fe70ed5da4cfe0ed8bf8f54.zip |
Switch up way background is set for widget
Diffstat (limited to 'subsonic-android/res')
-rw-r--r-- | subsonic-android/res/drawable/appwidget_bg.9.png | bin | 1784 -> 0 bytes | |||
-rw-r--r-- | subsonic-android/res/drawable/widget_background.xml | 12 | ||||
-rw-r--r-- | subsonic-android/res/layout/appwidget.xml | 2 |
3 files changed, 13 insertions, 1 deletions
diff --git a/subsonic-android/res/drawable/appwidget_bg.9.png b/subsonic-android/res/drawable/appwidget_bg.9.png Binary files differdeleted file mode 100644 index afe41b67..00000000 --- a/subsonic-android/res/drawable/appwidget_bg.9.png +++ /dev/null diff --git a/subsonic-android/res/drawable/widget_background.xml b/subsonic-android/res/drawable/widget_background.xml new file mode 100644 index 00000000..fe641900 --- /dev/null +++ b/subsonic-android/res/drawable/widget_background.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:state_pressed="true" + android:drawable="@drawable/appwidget_overlay" /> + + <item android:state_focused="true" android:state_enabled="true" + android:state_window_focused="true" + android:drawable="@drawable/appwidget_overlay" /> + + <item android:drawable="@drawable/appwidget_bg" /> +</selector> + diff --git a/subsonic-android/res/layout/appwidget.xml b/subsonic-android/res/layout/appwidget.xml index 4d6b1095..e2c797b3 100644 --- a/subsonic-android/res/layout/appwidget.xml +++ b/subsonic-android/res/layout/appwidget.xml @@ -3,7 +3,7 @@ android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal" - android:background="@drawable/appwidget_bg" + android:background="@drawable/widget_background" android:padding="0dp"> <ImageView android:id="@+id/appwidget_coverart" |