aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2024-08-20 19:08:04 +0000
committerDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2024-08-20 19:08:04 +0000
commit3f5d298ff5a65436b9922206ab067bd28c34bbe6 (patch)
treef8a48d29481686eaf5e801412767210ed838a658 /app/src/main/res/layout
parente4abfc6e38dc80b4376e86a28813d5c098ace5d6 (diff)
downloadinfinity-for-reddit-3f5d298ff5a65436b9922206ab067bd28c34bbe6.tar
infinity-for-reddit-3f5d298ff5a65436b9922206ab067bd28c34bbe6.tar.gz
infinity-for-reddit-3f5d298ff5a65436b9922206ab067bd28c34bbe6.tar.bz2
infinity-for-reddit-3f5d298ff5a65436b9922206ab067bd28c34bbe6.tar.lz
infinity-for-reddit-3f5d298ff5a65436b9922206ab067bd28c34bbe6.tar.xz
infinity-for-reddit-3f5d298ff5a65436b9922206ab067bd28c34bbe6.tar.zst
infinity-for-reddit-3f5d298ff5a65436b9922206ab067bd28c34bbe6.zip
Refine UI in CustomizePostFilterActivity and CustomizeCommentFilterActivity.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/activity_customize_comment_filter.xml2
-rw-r--r--app/src/main/res/layout/activity_customize_post_filter.xml63
2 files changed, 49 insertions, 16 deletions
diff --git a/app/src/main/res/layout/activity_customize_comment_filter.xml b/app/src/main/res/layout/activity_customize_comment_filter.xml
index 75ac2f88..1022e720 100644
--- a/app/src/main/res/layout/activity_customize_comment_filter.xml
+++ b/app/src/main/res/layout/activity_customize_comment_filter.xml
@@ -47,7 +47,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
- android:layout_marginTop="8dp"
+ android:layout_marginTop="16dp"
android:layout_marginEnd="16dp"
android:layout_marginBottom="8dp"
app:cardCornerRadius="12dp">
diff --git a/app/src/main/res/layout/activity_customize_post_filter.xml b/app/src/main/res/layout/activity_customize_post_filter.xml
index 89c59f4e..575bc9c0 100644
--- a/app/src/main/res/layout/activity_customize_post_filter.xml
+++ b/app/src/main/res/layout/activity_customize_post_filter.xml
@@ -43,26 +43,59 @@
android:layout_height="wrap_content"
android:orientation="vertical">
- <com.google.android.material.textfield.TextInputLayout
- android:id="@+id/name_text_input_layout_customize_post_filter_activity"
+ <com.google.android.material.card.MaterialCardView
+ android:id="@+id/name_card_view_customize_post_filter_activity"
+ style="?attr/materialCardViewFilledStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:paddingTop="8dp"
- android:paddingBottom="8dp"
- android:paddingStart="16dp"
- android:paddingEnd="16dp"
- style="@style/Widget.Material3.TextInputLayout.OutlinedBox">
-
- <com.google.android.material.textfield.TextInputEditText
- android:id="@+id/name_text_input_edit_text_customize_post_filter_activity"
+ android:layout_marginStart="16dp"
+ android:layout_marginTop="16dp"
+ android:layout_marginEnd="16dp"
+ android:layout_marginBottom="8dp"
+ app:cardCornerRadius="12dp">
+
+ <LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:fontFamily="?attr/font_family"
- android:textSize="?attr/font_default"
- android:hint="@string/post_filter_name_hint"
- android:maxLines="10" />
+ android:orientation="vertical">
+
+ <TextView
+ android:id="@+id/name_explanation_text_view_customize_post_filter_activity"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:fontFamily="?attr/font_family"
+ android:paddingStart="16dp"
+ android:paddingTop="8dp"
+ android:paddingEnd="16dp"
+ android:paddingBottom="8dp"
+ android:text="@string/post_filter_post_type_explanation"
+ android:textColor="?attr/primaryTextColor"
+ android:textSize="?attr/font_default" />
+
+ <com.google.android.material.textfield.TextInputLayout
+ android:id="@+id/name_text_input_layout_customize_post_filter_activity"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingTop="8dp"
+ android:paddingBottom="16dp"
+ android:paddingStart="16dp"
+ android:paddingEnd="16dp"
+ style="@style/Widget.Material3.TextInputLayout.OutlinedBox">
+
+ <com.google.android.material.textfield.TextInputEditText
+ android:id="@+id/name_text_input_edit_text_customize_post_filter_activity"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:fontFamily="?attr/font_family"
+ android:textSize="?attr/font_default"
+ android:hint="@string/post_filter_name_hint"
+ android:maxLines="10" />
- </com.google.android.material.textfield.TextInputLayout>
+ </com.google.android.material.textfield.TextInputLayout>
+
+ </LinearLayout>
+
+ </com.google.android.material.card.MaterialCardView>
<com.google.android.material.card.MaterialCardView
android:id="@+id/post_type_card_view_customize_post_filter_activity"