diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2025-05-09 11:04:20 +0300 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2025-05-09 11:04:20 +0300 |
| commit | 4ad6971caf93f481155d3f1923b8de97e49a0621 (patch) | |
| tree | e5fbd506aed5b60b27e34efbbc0e322172257795 /org.fox.ttrss/src/main/res/layout | |
| parent | b20acce27b05d24888e3a291f3f904bec5a28109 (diff) | |
add hack for material switches in preferences
Diffstat (limited to 'org.fox.ttrss/src/main/res/layout')
| -rwxr-xr-x | org.fox.ttrss/src/main/res/layout/fragment_article.xml | 2 | ||||
| -rw-r--r-- | org.fox.ttrss/src/main/res/layout/preference_material_switch.xml | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/org.fox.ttrss/src/main/res/layout/fragment_article.xml b/org.fox.ttrss/src/main/res/layout/fragment_article.xml index 71cf89ce..e75980b0 100755 --- a/org.fox.ttrss/src/main/res/layout/fragment_article.xml +++ b/org.fox.ttrss/src/main/res/layout/fragment_article.xml @@ -24,7 +24,7 @@ <com.google.android.material.card.MaterialCardView app:layout_scrollFlags="scroll|enterAlways" app:strokeWidth="0dp" - app:shapeAppearance="@style/shape_appearance_article_header" + app:shapeAppearance="@style/ShapeAppearanceArticleHeader" android:layout_width="match_parent" android:layout_height="wrap_content"> diff --git a/org.fox.ttrss/src/main/res/layout/preference_material_switch.xml b/org.fox.ttrss/src/main/res/layout/preference_material_switch.xml new file mode 100644 index 00000000..94d654f0 --- /dev/null +++ b/org.fox.ttrss/src/main/res/layout/preference_material_switch.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Derived from https://github.com/androidx/androidx/blob/8cb282cc/preference/preference/res/layout/preference_widget_switch_compat.xml --> +<com.google.android.material.materialswitch.MaterialSwitch xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/switchWidget" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@null" + android:clickable="false" + android:focusable="false" />
\ No newline at end of file |