diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-04-22 20:44:53 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-04-22 20:44:53 -0700 |
commit | 3e6eb652b371946ca40863114f42f655a96920a2 (patch) | |
tree | 1a778e909f87be31689f8dad88090adf23a3c458 /res/layout/album_cell_item.xml | |
parent | 27379ead6f7ee53ddfaac441f5877bb2777d4d97 (diff) | |
download | dsub-3e6eb652b371946ca40863114f42f655a96920a2.tar.gz dsub-3e6eb652b371946ca40863114f42f655a96920a2.tar.bz2 dsub-3e6eb652b371946ca40863114f42f655a96920a2.zip |
More work on showing albums in grid
Diffstat (limited to 'res/layout/album_cell_item.xml')
-rw-r--r-- | res/layout/album_cell_item.xml | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/res/layout/album_cell_item.xml b/res/layout/album_cell_item.xml new file mode 100644 index 00000000..9cc85c6e --- /dev/null +++ b/res/layout/album_cell_item.xml @@ -0,0 +1,56 @@ +<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="vertical"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <github.daneren2005.dsub.view.SquareImageView
+ android:id="@+id/album_coverart"
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_weight="1"
+ android:src="@drawable/unknown_album"/>
+
+ <LinearLayout
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal"
+ android:paddingTop="4dp"
+ android:paddingLeft="2dp">
+
+ <LinearLayout
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:gravity="center_vertical"
+ android:orientation="vertical">
+
+ <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"
+ android:text="@string/search.albums"/>
+
+ <TextView
+ android:id="@+id/album_artist"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:singleLine="true"
+ android:text="@string/search.artists"/>
+ </LinearLayout>
+
+ <ImageView
+ android:id="@+id/album_more"
+ android:src="?attr/download_none"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="right|center_vertical"
+ android:paddingRight="2dp"
+ android:background="@drawable/menubar_button"/>
+ </LinearLayout>
+
+</LinearLayout>
\ No newline at end of file |