directory_view_item.xml 1.61 KB
Newer Older
Edward Wang's avatar
Edward Wang committed
1 2 3 4 5 6 7 8 9
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/layout_item"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal" >

    <ImageView
        android:id="@+id/dvi_icon"
10 11 12
        android:layout_width="@dimen/audio_browser_item_size"
        android:layout_height="@dimen/audio_browser_item_size"
        android:layout_gravity="center"
13
        android:contentDescription="@string/cover_art"
Edward Wang's avatar
Edward Wang committed
14 15 16
        android:src="@drawable/icon" />

    <LinearLayout
17 18 19
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_toRightOf="@+id/cover"
Edward Wang's avatar
Edward Wang committed
20
        android:gravity="center_vertical"
21 22
        android:orientation="vertical"
        android:paddingLeft="10dp" >
Edward Wang's avatar
Edward Wang committed
23 24 25 26 27

        <TextView
            android:id="@+id/title"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
28 29 30
            android:layout_gravity="center_vertical"
            android:ellipsize="marquee"
            android:maxLines="1"
Edward Wang's avatar
Edward Wang committed
31
            android:text="@string/title"
32
            android:textColor="?attr/list_title"
33
            android:textSize="20sp" />
Edward Wang's avatar
Edward Wang committed
34 35 36 37 38

        <TextView
            android:id="@+id/text"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
39 40 41
            android:ellipsize="marquee"
            android:maxLines="1"
            android:text="@string/artist"
42
            android:textColor="?attr/list_subtitle"
43
            android:textSize="14sp" />
Edward Wang's avatar
Edward Wang committed
44
    </LinearLayout>
45

Edward Wang's avatar
Edward Wang committed
46
</LinearLayout>