summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/filter_dialog_row.xml
blob: 7ecfc82236846d70e9e62ac1a646e64124d5fb3b (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
<?xml version="1.0" encoding="utf-8"?>
<de.danoeh.antennapod.ui.common.RecursiveRadioGroup
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingBottom="8dp"
    android:orientation="horizontal">

    <androidx.cardview.widget.CardView
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:clipChildren="true"
        android:layout_gravity="center_vertical"
        app:cardCornerRadius="32dp"
        app:cardElevation="0dp">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="horizontal">

            <RadioButton
                android:id="@+id/filter_dialog_radioButton1"
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_marginEnd="2dp"
                android:layout_marginRight="2dp"
                android:layout_weight="1"
                android:background="?attr/filter_dialog_button_background"
                android:minHeight="40dp"
                android:foreground="?android:attr/selectableItemBackground"
                android:checked="false"
                android:gravity="center"
                android:textColor="@color/filter_dialog_button_text"
                style="@style/NoButtonRadio" />

            <RadioButton
                android:id="@+id/filter_dialog_radioButton2"
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:minHeight="40dp"
                android:layout_weight="1"
                android:background="?attr/filter_dialog_button_background"
                android:foreground="?android:attr/selectableItemBackground"
                android:checked="false"
                android:gravity="center"
                android:textColor="@color/filter_dialog_button_text"
                style="@style/NoButtonRadio" />

        </LinearLayout>

    </androidx.cardview.widget.CardView>

    <RadioButton
        android:id="@+id/filter_dialog_clear"
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:background="@drawable/ic_filter_close"
        android:foreground="?android:attr/selectableItemBackground"
        android:layout_gravity="center_vertical"
        android:checked="true"
        style="@style/NoButtonRadio" />

</de.danoeh.antennapod.ui.common.RecursiveRadioGroup>