directory_view_item.xml 2.01 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"
Geoffrey Métais's avatar
Geoffrey Métais committed
6
    android:orientation="horizontal" >
Edward Wang's avatar
Edward Wang committed
7 8 9

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

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

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

        <TextView
            android:id="@+id/text"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
43 44 45
            android:ellipsize="marquee"
            android:maxLines="1"
            android:text="@string/artist"
46
            android:textColor="?attr/list_subtitle"/>
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>