summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/subscription_item.xml
blob: 0b689fa28b6aa454594af5313c79b317e15443f0 (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
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:squareImageView="http://schemas.android.com/apk/de.danoeh.antennapod"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:padding="4dp">

    <androidx.cardview.widget.CardView
        android:id="@+id/outerContainer"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:clickable="false"
        android:foreground="?attr/selectableItemBackground"
        app:cardCornerRadius="12dp"
        app:cardElevation="0dp">

        <LinearLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:orientation="vertical">

            <androidx.cardview.widget.CardView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_margin="1px"
                android:clickable="false"
                app:cardBackgroundColor="@color/non_square_icon_background"
                app:cardCornerRadius="12dp"
                app:cardElevation="0dp">

                <RelativeLayout
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content">

                    <de.danoeh.antennapod.ui.common.SquareImageView
                        android:id="@+id/coverImage"
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:scaleType="fitCenter"
                        android:outlineProvider="background"
                        squareImageView:direction="width"
                        tools:src="@tools:sample/avatars" />

                    <TextView
                        android:id="@+id/fallbackTitleLabel"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_alignStart="@+id/coverImage"
                        android:layout_alignLeft="@+id/coverImage"
                        android:layout_alignTop="@+id/coverImage"
                        android:layout_alignEnd="@+id/coverImage"
                        android:layout_alignRight="@+id/coverImage"
                        android:layout_alignBottom="@+id/coverImage"
                        android:background="@color/feed_text_bg"
                        android:gravity="center"
                        android:ellipsize="end"
                        android:padding="6dp"
                        android:textColor="#fff"
                        tools:text="@sample/episodes.json/data/title" />

                    <TextView
                        android:id="@+id/countViewPill"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="3"
                        android:layout_alignParentEnd="true"
                        android:textSize="14sp"
                        style="@style/TextPill" />

                </RelativeLayout>

            </androidx.cardview.widget.CardView>

            <TextView
                android:id="@+id/titleLabel"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:ellipsize="end"
                android:gravity="start"
                android:textColor="?android:attr/textColorPrimary"
                android:lines="2"
                tools:text="@sample/episodes.json/data/title" />

        </LinearLayout>

        <FrameLayout
            android:id="@+id/selectContainer"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:clickable="false">

            <CheckBox
                android:id="@+id/selectCheckBox"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:minWidth="0dp"
                android:minHeight="0dp"
                android:layout_margin="8dp" />

        </FrameLayout>

    </androidx.cardview.widget.CardView>

</FrameLayout>