diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-10-11 19:10:47 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-10-11 19:10:47 -0700 |
commit | e1cf77e0ee66701dc979f4c3f5e38ce0508f5645 (patch) | |
tree | 6323434434bd84386938069e5d8b444bcede5645 /res | |
parent | 7ca56013ee36e32c011728faf7bd778ad9745c70 (diff) | |
download | dsub-e1cf77e0ee66701dc979f4c3f5e38ce0508f5645.tar.gz dsub-e1cf77e0ee66701dc979f4c3f5e38ce0508f5645.tar.bz2 dsub-e1cf77e0ee66701dc979f4c3f5e38ce0508f5645.zip |
Closes #130 Add option to hide widget while inactive
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/appwidget4x1.xml | 3 | ||||
-rw-r--r-- | res/layout/appwidget4x2.xml | 3 | ||||
-rw-r--r-- | res/layout/appwidget4x3.xml | 3 | ||||
-rw-r--r-- | res/layout/appwidget4x4.xml | 3 | ||||
-rw-r--r-- | res/values/strings.xml | 2 | ||||
-rw-r--r-- | res/xml/settings.xml | 6 |
6 files changed, 16 insertions, 4 deletions
diff --git a/res/layout/appwidget4x1.xml b/res/layout/appwidget4x1.xml index 5e55aa37..68fecb9a 100644 --- a/res/layout/appwidget4x1.xml +++ b/res/layout/appwidget4x1.xml @@ -5,7 +5,8 @@ android:minWidth="250dp" android:minHeight="40dp" android:background="@drawable/appwidget_bg" - android:orientation="horizontal" > + android:orientation="horizontal" + android:id="@+id/widget_root"> <ImageView android:id="@+id/appwidget_coverart" diff --git a/res/layout/appwidget4x2.xml b/res/layout/appwidget4x2.xml index 575ae1c2..8409bbbf 100644 --- a/res/layout/appwidget4x2.xml +++ b/res/layout/appwidget4x2.xml @@ -5,7 +5,8 @@ android:minWidth="250dp" android:minHeight="110dp" android:background="@drawable/appwidget_bg" - android:orientation="horizontal" > + android:orientation="horizontal" + android:id="@+id/widget_root"> <ImageView android:id="@+id/appwidget_coverart" diff --git a/res/layout/appwidget4x3.xml b/res/layout/appwidget4x3.xml index b4f685bc..e72a266d 100644 --- a/res/layout/appwidget4x3.xml +++ b/res/layout/appwidget4x3.xml @@ -3,7 +3,8 @@ android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/appwidget_bg" - android:orientation="vertical" > + android:orientation="vertical" + android:id="@+id/widget_root"> <ImageView android:id="@+id/appwidget_coverart" diff --git a/res/layout/appwidget4x4.xml b/res/layout/appwidget4x4.xml index 6e6c12ab..c885829b 100644 --- a/res/layout/appwidget4x4.xml +++ b/res/layout/appwidget4x4.xml @@ -3,7 +3,8 @@ android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" - android:background="@drawable/appwidget_bg" > + android:background="@drawable/appwidget_bg" + android:id="@+id/widget_root"> <ImageView android:id="@+id/appwidget_coverart" diff --git a/res/values/strings.xml b/res/values/strings.xml index 5702271a..3721109e 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -331,6 +331,8 @@ <string name="settings.video_flash">Flash (Requires Plugin)</string>
<string name="settings.cache_screen_title">Cache/Network</string>
<string name="settings.playback_title">Playback</string>
+ <string name="settings.hide_widget_title">Hide Widget</string>
+ <string name="settings.hide_widget_summary">Hide widget after exiting app</string>
<string name="shuffle.title">Shuffle By</string>
<string name="shuffle.startYear">Start Year:</string>
diff --git a/res/xml/settings.xml b/res/xml/settings.xml index bbfbf620..8f6759c0 100644 --- a/res/xml/settings.xml +++ b/res/xml/settings.xml @@ -37,6 +37,12 @@ android:key="displayTrack" android:defaultValue="false"/> + <CheckBoxPreference + android:title="@string/settings.hide_widget_title" + android:summary="@string/settings.hide_widget_summary" + android:key="hideWidget" + android:defaultValue="false"/> + </PreferenceCategory> <PreferenceCategory |