aboutsummaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-04-30 21:30:57 -0700
committerScott Jackson <daneren2005@gmail.com>2014-04-30 21:30:57 -0700
commitaf7238785da4e61dca1bc3abd1a2357726e29f38 (patch)
treed1b0470a331e0777ec9aca7c1848d57af8198c11 /res
parentfa09f6b7371d7e1e5290a9c1fbfd4aee4d93676e (diff)
downloaddsub-af7238785da4e61dca1bc3abd1a2357726e29f38.tar.gz
dsub-af7238785da4e61dca1bc3abd1a2357726e29f38.tar.bz2
dsub-af7238785da4e61dca1bc3abd1a2357726e29f38.zip
Make large album art optional
Diffstat (limited to 'res')
-rw-r--r--res/layout/album_list_item.xml58
-rw-r--r--res/values/strings.xml2
-rw-r--r--res/xml/settings.xml5
3 files changed, 65 insertions, 0 deletions
diff --git a/res/layout/album_list_item.xml b/res/layout/album_list_item.xml
new file mode 100644
index 00000000..a98f0e04
--- /dev/null
+++ b/res/layout/album_list_item.xml
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@id/drag_handle"
+ android:orientation="horizontal"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content">
+
+ <ImageView
+ android:id="@+id/album_coverart"
+ android:layout_width="@dimen/AlbumArt.Small"
+ android:layout_height="@dimen/AlbumArt.Small"
+ android:layout_gravity="left|center_vertical"/>
+
+ <LinearLayout
+ android:orientation="vertical"
+ android:layout_width="0dip"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:layout_gravity="left|center_vertical"
+ android:paddingLeft="10dip"
+ android:paddingRight="3dip">
+
+ <TextView
+ android:id="@+id/album_title"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ android:singleLine="true"
+ android:ellipsize="marquee"/>
+
+ <TextView
+ android:id="@+id/album_artist"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:singleLine="true"/>
+
+ </LinearLayout>
+
+ <ImageButton
+ android:id="@+id/album_star"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="right|center_vertical"
+ android:src="@drawable/ic_stat_star"
+ android:background="@android:color/transparent"
+ android:focusable="false"
+ android:visibility="gone"/>
+
+ <ImageView
+ android:id="@+id/album_more"
+ android:src="?attr/download_none"
+ android:layout_width="wrap_content"
+ android:layout_height="fill_parent"
+ android:layout_gravity="right|center_vertical"
+ android:paddingRight="10dip"
+ android:background="@drawable/menubar_button"/>
+</LinearLayout>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 0cbb9330..638df57a 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -402,6 +402,8 @@
<string name="settings.drawer_items_title">Drawer Items</string>
<string name="settings.play_now_after">Play Now - After</string>
<string name="settings.play_now_after_summary">Play Now context menu for a song plays everything after selected item (like the Subsonic web GUI)</string>
+ <string name="settings.large_album_art">Large Album Art</string>
+ <string name="settings.large_album_art_summary">Display albums with large album art instead of in a list</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 734621b5..9f1b5b67 100644
--- a/res/xml/settings.xml
+++ b/res/xml/settings.xml
@@ -67,6 +67,11 @@
android:key="overrideSystemLanguage"
android:defaultValue="false"/>
+ <CheckBoxPreference
+ android:title="@string/settings.large_album_art"
+ android:summary="@string/settings.large_album_art_summary"
+ android:key="largeAlbumArt"
+ android:defaultValue="true"/>
</PreferenceCategory>
<PreferenceCategory