From e6bb87a9cc2ded99707020592957627726d91898 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Thu, 4 Nov 2021 22:13:59 +0800 Subject: Fix Material Design 3 issue. --- app/src/main/res/layout/activity_post_gallery.xml | 8 ++++---- app/src/main/res/layout/activity_post_image.xml | 10 ++++++---- app/src/main/res/layout/activity_post_link.xml | 14 +++++++------- app/src/main/res/layout/activity_post_text.xml | 8 ++++---- app/src/main/res/layout/activity_post_video.xml | 8 ++++---- app/src/main/res/layout/activity_view_subreddit_detail.xml | 3 ++- app/src/main/res/layout/activity_view_user_detail.xml | 3 ++- 7 files changed, 29 insertions(+), 25 deletions(-) (limited to 'app/src/main/res/layout') diff --git a/app/src/main/res/layout/activity_post_gallery.xml b/app/src/main/res/layout/activity_post_gallery.xml index 150870e0..7d3124f8 100644 --- a/app/src/main/res/layout/activity_post_gallery.xml +++ b/app/src/main/res/layout/activity_post_gallery.xml @@ -36,9 +36,7 @@ + android:layout_centerVertical="true" + android:layout_marginStart="16dp" /> diff --git a/app/src/main/res/layout/activity_post_image.xml b/app/src/main/res/layout/activity_post_image.xml index 2e66a7ea..fe286ab8 100644 --- a/app/src/main/res/layout/activity_post_image.xml +++ b/app/src/main/res/layout/activity_post_image.xml @@ -36,9 +36,7 @@ + android:layout_centerVertical="true" + android:layout_marginStart="16dp" /> @@ -197,6 +197,7 @@ android:id="@+id/capture_fab_post_image_activity" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:layout_margin="16dp" android:src="@drawable/ic_outline_add_a_photo_24dp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toStartOf="@+id/select_from_library_fab_post_image_activity" @@ -209,6 +210,7 @@ android:id="@+id/select_from_library_fab_post_image_activity" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:layout_margin="16dp" android:src="@drawable/ic_outline_select_photo_24dp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" diff --git a/app/src/main/res/layout/activity_post_link.xml b/app/src/main/res/layout/activity_post_link.xml index 427b8306..9023e2a0 100644 --- a/app/src/main/res/layout/activity_post_link.xml +++ b/app/src/main/res/layout/activity_post_link.xml @@ -36,9 +36,7 @@ + android:layout_centerVertical="true" + android:layout_marginStart="16dp" /> @@ -171,9 +171,7 @@ + android:layout_height="wrap_content"> diff --git a/app/src/main/res/layout/activity_post_text.xml b/app/src/main/res/layout/activity_post_text.xml index f18bf667..12440dd4 100644 --- a/app/src/main/res/layout/activity_post_text.xml +++ b/app/src/main/res/layout/activity_post_text.xml @@ -42,9 +42,7 @@ + android:layout_centerVertical="true" + android:layout_marginStart="16dp" /> diff --git a/app/src/main/res/layout/activity_post_video.xml b/app/src/main/res/layout/activity_post_video.xml index e1c297cb..3c74922a 100644 --- a/app/src/main/res/layout/activity_post_video.xml +++ b/app/src/main/res/layout/activity_post_video.xml @@ -36,9 +36,7 @@ + android:layout_centerVertical="true" + android:layout_marginStart="16dp" /> diff --git a/app/src/main/res/layout/activity_view_subreddit_detail.xml b/app/src/main/res/layout/activity_view_subreddit_detail.xml index 6709af9f..a347b353 100644 --- a/app/src/main/res/layout/activity_view_subreddit_detail.xml +++ b/app/src/main/res/layout/activity_view_subreddit_detail.xml @@ -65,7 +65,8 @@ android:id="@+id/subscribe_subreddit_chip_view_subreddit_detail_activity" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_gravity="center_horizontal"/> + android:layout_gravity="center_horizontal" + app:chipStrokeColor="#00000000" /> + android:visibility="gone" + app:chipStrokeColor="#00000000" />