diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-04-30 21:30:57 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-04-30 21:30:57 -0700 |
commit | af7238785da4e61dca1bc3abd1a2357726e29f38 (patch) | |
tree | d1b0470a331e0777ec9aca7c1848d57af8198c11 /res/layout | |
parent | fa09f6b7371d7e1e5290a9c1fbfd4aee4d93676e (diff) | |
download | dsub-af7238785da4e61dca1bc3abd1a2357726e29f38.tar.gz dsub-af7238785da4e61dca1bc3abd1a2357726e29f38.tar.bz2 dsub-af7238785da4e61dca1bc3abd1a2357726e29f38.zip |
Make large album art optional
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/album_list_item.xml | 58 |
1 files changed, 58 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>
|