directory_view_item.xml 1.98 KB
Newer Older
Edward Wang's avatar
Edward Wang committed
1 2 3 4 5
<?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"
6 7 8
    android:orientation="horizontal"
    android:paddingTop="5dp"
    android:paddingBottom="5dp" >
Edward Wang's avatar
Edward Wang committed
9 10 11

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

    <LinearLayout
19
        android:layout_width="0dp"
20
        android:layout_height="match_parent"
Edward Wang's avatar
Edward Wang committed
21
        android:gravity="center_vertical"
22
        android:layout_weight="1"
23 24
        android:orientation="vertical"
        android:paddingLeft="10dp" >
Edward Wang's avatar
Edward Wang committed
25 26 27 28 29

        <TextView
            android:id="@+id/title"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
30 31
            android:layout_gravity="center_vertical"
            android:ellipsize="marquee"
32 33
            android:marqueeRepeatLimit="marquee_forever"
            android:singleLine="true"
Edward Wang's avatar
Edward Wang committed
34
            android:text="@string/title"
35
            android:textColor="?attr/list_title"
36
            android:textSize="20sp" />
Edward Wang's avatar
Edward Wang committed
37 38 39 40 41

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

49 50 51 52 53 54 55 56
    <ImageView
        android:id="@+id/item_more"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:background="@drawable/ic_more_vert_grey600_24dp"
        android:clickable="true" />

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