diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2023-05-07 11:28:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-07 11:28:41 +0200 |
commit | b8a1c1f49ac57a6c0cee9ccab45f565e6bf6b67f (patch) | |
tree | c94b8e1806e9148a96e21285d60b9b4950f671f7 /app/src/main | |
parent | da16f13e8bcaa92333557823eef23f7c15636555 (diff) | |
download | AntennaPod-b8a1c1f49ac57a6c0cee9ccab45f565e6bf6b67f.zip |
Let filter button height grow (#6477)
Also, make it easier to see what option is selected
Diffstat (limited to 'app/src/main')
3 files changed, 12 insertions, 4 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/dialog/ItemFilterDialog.java b/app/src/main/java/de/danoeh/antennapod/dialog/ItemFilterDialog.java index a122a7cec..92c143992 100644 --- a/app/src/main/java/de/danoeh/antennapod/dialog/ItemFilterDialog.java +++ b/app/src/main/java/de/danoeh/antennapod/dialog/ItemFilterDialog.java @@ -47,6 +47,10 @@ public abstract class ItemFilterDialog extends BottomSheetDialogFragment { binding.filterButton1.setTag(item.values[0].filterId); binding.filterButton2.setText(item.values[1].displayName); binding.filterButton2.setTag(item.values[1].filterId); + binding.filterButton1.setMaxLines(3); + binding.filterButton1.setSingleLine(false); + binding.filterButton2.setMaxLines(3); + binding.filterButton2.setSingleLine(false); rows.addView(binding.getRoot()); } diff --git a/app/src/main/java/de/danoeh/antennapod/dialog/SubscriptionsFilterDialog.java b/app/src/main/java/de/danoeh/antennapod/dialog/SubscriptionsFilterDialog.java index 1aedfcf8b..cf77c2838 100644 --- a/app/src/main/java/de/danoeh/antennapod/dialog/SubscriptionsFilterDialog.java +++ b/app/src/main/java/de/danoeh/antennapod/dialog/SubscriptionsFilterDialog.java @@ -46,6 +46,10 @@ public class SubscriptionsFilterDialog { } else { binding.filterButton2.setVisibility(View.GONE); } + binding.filterButton1.setMaxLines(3); + binding.filterButton1.setSingleLine(false); + binding.filterButton2.setMaxLines(3); + binding.filterButton2.setSingleLine(false); rows.addView(binding.getRoot()); } diff --git a/app/src/main/res/layout/filter_dialog_row.xml b/app/src/main/res/layout/filter_dialog_row.xml index cc397df02..81185a1de 100644 --- a/app/src/main/res/layout/filter_dialog_row.xml +++ b/app/src/main/res/layout/filter_dialog_row.xml @@ -11,15 +11,15 @@ <Button android:id="@+id/filterButton1" android:layout_width="0dp" - android:layout_height="wrap_content" + android:layout_height="match_parent" android:layout_weight="1" - style="?attr/materialButtonOutlinedStyle" /> + style="@style/OutlinedButtonBetterContrast" /> <Button android:id="@+id/filterButton2" android:layout_width="0dp" - android:layout_height="wrap_content" + android:layout_height="match_parent" android:layout_weight="1" - style="?attr/materialButtonOutlinedStyle" /> + style="@style/OutlinedButtonBetterContrast" /> </com.google.android.material.button.MaterialButtonToggleGroup> |