summaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorByteHamster <info@bytehamster.com>2020-07-13 11:45:01 +0200
committerByteHamster <info@bytehamster.com>2020-07-13 11:45:01 +0200
commita26a41514ae79af7cd9bdfa8838ce62bde1b1c35 (patch)
tree52614ce1ea9b1f20045bd8d28f7ade46a489589c /app/src/main
parent051714dff81061d33fe8cbc14aa9f278b97ccbfe (diff)
downloadAntennaPod-a26a41514ae79af7cd9bdfa8838ce62bde1b1c35.zip
Resize filter rows automatically
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/res/layout/filter_dialog_row.xml13
1 files changed, 9 insertions, 4 deletions
diff --git a/app/src/main/res/layout/filter_dialog_row.xml b/app/src/main/res/layout/filter_dialog_row.xml
index 9bed9aabf..0863997b3 100644
--- a/app/src/main/res/layout/filter_dialog_row.xml
+++ b/app/src/main/res/layout/filter_dialog_row.xml
@@ -1,17 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
-<de.danoeh.antennapod.view.RecursiveRadioGroup xmlns:android="http://schemas.android.com/apk/res/android"
+<de.danoeh.antennapod.view.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="48dp"
- android:layout_marginBottom="8dp"
+ android:layout_height="wrap_content"
android:layout_weight="1"
android:clipChildren="true"
- app:cardCornerRadius="24dp"
+ app:cardCornerRadius="32dp"
app:cardElevation="0dp">
<LinearLayout
@@ -28,6 +29,7 @@
android:layout_weight="1"
android:background="?attr/filter_dialog_button_background"
android:button="@android:color/transparent"
+ android:foreground="?android:attr/selectableItemBackground"
android:checked="false"
android:gravity="center"
android:textColor="@color/filter_dialog_button_text" />
@@ -39,6 +41,7 @@
android:layout_weight="1"
android:background="?attr/filter_dialog_button_background"
android:button="@android:color/transparent"
+ android:foreground="?android:attr/selectableItemBackground"
android:checked="false"
android:gravity="center"
android:textColor="@color/filter_dialog_button_text" />
@@ -51,6 +54,8 @@
android:layout_height="48dp"
android:background="@drawable/ic_filter_close"
android:button="@android:color/transparent"
+ android:foreground="?android:attr/selectableItemBackground"
+ android:layout_gravity="center_vertical"
android:checked="true" />
</de.danoeh.antennapod.view.RecursiveRadioGroup>