directory_view_item.xml 2.55 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
9
    android:orientation="horizontal"
    android:focusable="true"
    android:clickable="true"
    android:background="@drawable/background_item">
Edward Wang's avatar
Edward Wang committed
10

11
12
    <CheckBox
        android:id="@+id/browser_checkbox"
13
        android:layout_width="wrap_content"
14
15
        android:layout_height="wrap_content"
        android:layout_gravity="center_vertical"
16
        android:button="@drawable/custom_checkbox_button"
17
        android:layout_marginLeft="15dp"
18
19
        android:visibility="gone"/>

Edward Wang's avatar
Edward Wang committed
20
21
    <ImageView
        android:id="@+id/dvi_icon"
22
23
        android:layout_width="@dimen/directory_browser_item_size"
        android:layout_height="@dimen/directory_browser_item_size"
24
        android:layout_gravity="center"
25
        android:layout_marginLeft="15dp"
26
        android:contentDescription="@string/cover_art"
Edward Wang's avatar
Edward Wang committed
27
28
29
        android:src="@drawable/icon" />

    <LinearLayout
30
        android:layout_width="0dp"
31
32
33
        android:layout_height="wrap_content"
        android:layout_marginBottom="15dp"
        android:layout_marginTop="15dp"
34
        android:layout_weight="1"
35
        android:gravity="center_vertical"
36
        android:orientation="vertical"
37
        android:paddingLeft="15dp" >
Edward Wang's avatar
Edward Wang committed
38
39
40
41
42

        <TextView
            android:id="@+id/title"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
43
44
            android:layout_gravity="center_vertical"
            android:ellipsize="marquee"
45
46
            android:marqueeRepeatLimit="marquee_forever"
            android:singleLine="true"
Edward Wang's avatar
Edward Wang committed
47
            android:text="@string/title"
48
            android:fontFamily="sans-serif-light"
49
            android:textColor="?attr/list_title"
50
            android:textSize="16sp" />
Edward Wang's avatar
Edward Wang committed
51
52
53
54
55

        <TextView
            android:id="@+id/text"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
56
57
            android:ellipsize="marquee"
            android:maxLines="1"
58
            android:fontFamily="sans-serif-light"
59
            android:textColor="?attr/list_subtitle"/>
Edward Wang's avatar
Edward Wang committed
60
    </LinearLayout>
61

62
63
64
65
66
    <ImageView
        android:id="@+id/item_more"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
67
68
        android:paddingRight="10dp"
        android:paddingLeft="10dp"
Alexandre Perraud's avatar
Alexandre Perraud committed
69
        android:background="@drawable/ic_more"
70
71
        android:clickable="true" />

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