summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/gpodnet_podcast_listitem.xml
blob: 56d351d62bb48ef227f67aada01e44e1e623ecd4 (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
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        xmlns:app="http://schemas.android.com/apk/res-auto"
        android:layout_width="match_parent" android:layout_height="wrap_content"
        android:paddingTop="8dp"
        android:paddingLeft="16dp"
        android:paddingRight="16dp"
        android:paddingBottom="8dp"
        tools:background="@android:color/darker_gray">

    <ImageView
            android:id="@+id/imgvCover"
            android:layout_width="@dimen/thumbnail_length_itemlist"
            android:layout_height="@dimen/thumbnail_length_itemlist"
            android:layout_alignParentLeft="true"
            android:layout_alignParentStart="true"
            android:layout_alignParentTop="true"
            android:layout_marginRight="16dp"
            android:layout_marginEnd="16dp"
            android:adjustViewBounds="true"
            android:importantForAccessibility="no"
            android:cropToPadding="true"
            android:scaleType="fitXY"
            tools:src="@tools:sample/avatars"
            tools:background="@android:color/holo_green_dark"/>


    <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_centerVertical="true"
            android:layout_toRightOf="@id/imgvCover"
            android:layout_toEndOf="@id/imgvCover"
            android:orientation="vertical">

        <TextView
                android:id="@+id/txtvTitle"
                style="@style/AntennaPod.TextView.ListItemPrimaryTitle2"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:maxLines="2"
                android:includeFontPadding="false"
                tools:text="Title"
                tools:background="@android:color/holo_green_dark"/>

        <TextView
                android:id="@+id/txtvAuthor"
                style="android:style/TextAppearance.Small"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:textSize="14sp"
                android:textColor="?android:attr/textColorSecondary"
                android:ellipsize="middle"
                android:maxLines="2"
                tools:text="author"
                tools:background="@android:color/holo_green_dark"/>

        <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="horizontal"
                android:gravity="center_vertical">
            <ImageView
                    android:layout_width="14sp"
                    android:layout_height="14sp"
                    app:srcCompat="@drawable/ic_feed"/>
            <TextView
                    android:id="@+id/txtvSubscribers"
                    style="@style/AntennaPod.TextView.ListItemSecondaryTitle"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:lines="1"
                    tools:text="150"
                    tools:background="@android:color/holo_green_dark"/>
        </LinearLayout>

    </LinearLayout>
</RelativeLayout>