summaryrefslogtreecommitdiff
path: root/res/layout/feedlist_item_grid.xml
blob: a08d89948e908e79ac229f54177be9bf9c934de0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content" >

    <ImageView
        android:id="@+id/imgvFeedimage"
        android:layout_width="@dimen/thumbnail_length"
        android:layout_height="@dimen/thumbnail_length"
        android:layout_alignParentTop="true"
        android:layout_centerHorizontal="true"
        android:layout_margin="8dp"
        android:adjustViewBounds="true"
        android:cropToPadding="true"
        android:scaleType="fitXY" />

    <LinearLayout
        android:id="@+id/lEpisodeCounts"
        android:layout_width="wrap_content"
        android:layout_height="fill_parent"
        android:layout_alignRight="@id/imgvFeedimage"
        android:layout_below="@id/imgvFeedimage"
        android:layout_centerVertical="true"
        android:orientation="vertical" >

        <RelativeLayout
            android:id="@+id/lNewStatusLabel"
            android:layout_width="@dimen/status_indicator_width"
            android:layout_height="0dip"
            android:layout_marginBottom="8dp"
            android:layout_marginTop="4dp"
            android:layout_weight="1"
            android:background="@color/status_unread" >

            <ImageView
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:layout_alignParentRight="true"
                android:layout_centerVertical="true"
                android:layout_marginRight="4dp"
                android:src="@drawable/white_circle" />

            <TextView
                android:id="@+id/txtvNewEps"
                android:layout_width="wrap_content"
                android:layout_height="fill_parent"
                android:layout_alignParentLeft="true"
                android:layout_centerVertical="true"
                android:layout_marginLeft="4dp"
                android:layout_marginRight="8dp"
                android:maxLines="1"
                android:minEms="2"
                android:textColor="@color/white"
                android:textSize="@dimen/text_size_micro"
                android:textStyle="bold" />
        </RelativeLayout>

        <RelativeLayout
            android:id="@+id/lProgressStatusLabel"
            android:layout_width="@dimen/status_indicator_width"
            android:layout_height="0dip"
            android:layout_marginBottom="8dp"
            android:layout_weight="1"
            android:background="@color/ics_gray" >

            <TextView
                android:id="@+id/txtvProgressEps"
                android:layout_width="wrap_content"
                android:layout_height="fill_parent"
                android:layout_alignParentLeft="true"
                android:layout_centerVertical="true"
                android:background="@color/status_progress"
                android:maxLines="1"
                android:minEms="2"
                android:paddingLeft="4dp"
                android:textColor="@color/white"
                android:textSize="@dimen/text_size_micro"
                android:textStyle="bold" />

            <ImageView
                android:layout_width="10dp"
                android:layout_height="8dp"
                android:layout_alignParentRight="true"
                android:layout_centerVertical="true"
                android:layout_marginLeft="2dp"
                android:layout_marginRight="2dp"
                android:src="@drawable/av_play_dark" />
        </RelativeLayout>
    </LinearLayout>

    <LinearLayout
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@id/imgvFeedimage"
        android:layout_below="@id/imgvFeedimage"
        android:layout_toLeftOf="@id/lEpisodeCounts"
        android:orientation="vertical" >

        <TextView
            android:id="@+id/txtvFeedname"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginBottom="8dp"
            android:layout_marginRight="8dp"
            android:ellipsize="end"
            android:lines="1"
            android:textSize="@dimen/text_size_medium"
            android:textStyle="bold" />

        <TextView
            android:id="@+id/txtvLastUpdate"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:textColor="?android:attr/textColorSecondary" />

        <TextView
            android:id="@+id/txtvNumEpisodes"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginBottom="8dp"
            android:layout_marginRight="8dp"
            android:textColor="?android:attr/textColorSecondary" />
    </LinearLayout>

</RelativeLayout>