summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/subscription_item.xml
blob: ec918fdac51da832d44ca96e4f59e1d4d72b8e98 (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
<?xml version='1.0' encoding='utf-8'?>
<RelativeLayout
    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="match_parent"
    android:layout_height="match_parent"
    android:foreground="?attr/selectableItemBackground">

    <de.danoeh.antennapod.ui.common.SquareImageView
        android:id="@+id/imgvCover"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@color/non_square_icon_background"
        android:scaleType="fitCenter"
        squareImageView:direction="width"
        tools:src="@mipmap/ic_launcher_round" />

    <com.joanzapata.iconify.widget.IconTextView
        android:id="@+id/txtvTitle"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_alignStart="@+id/imgvCover"
        android:layout_alignLeft="@+id/imgvCover"
        android:layout_alignTop="@+id/imgvCover"
        android:layout_alignEnd="@+id/imgvCover"
        android:layout_alignRight="@+id/imgvCover"
        android:layout_alignBottom="@+id/imgvCover"
        android:background="@color/non_square_icon_background"
        android:ellipsize="end"
        android:gravity="center"
        android:textColor="?android:attr/textColorPrimary"
        tools:text="@string/app_name" />

    <jp.shts.android.library.TriangleLabelView
        android:id="@+id/triangleCountView"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_alignParentTop="true"
        android:layout_alignParentEnd="true"
        android:layout_alignParentRight="true"
        app:backgroundColor="?attr/colorSecondary"
        app:corner="rightTop"
        app:primaryText="Test"
        app:primaryTextColor="?attr/colorOnSecondary"
        app:primaryTextSize="12sp" />

</RelativeLayout>