From 8246814dda922fe5387058ef315781ea5f866d85 Mon Sep 17 00:00:00 2001 From: Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> Date: Mon, 9 Sep 2024 20:35:17 -0400 Subject: New UI design in ViewSubredditDetailActivity. --- .../layout-land/activity_view_subreddit_detail.xml | 191 +++++++++++---------- .../activity_view_subreddit_detail.xml | 191 +++++++++++---------- .../res/layout/activity_view_subreddit_detail.xml | 191 +++++++++++---------- 3 files changed, 303 insertions(+), 270 deletions(-) (limited to 'app/src/main/res') diff --git a/app/src/main/res/layout-land/activity_view_subreddit_detail.xml b/app/src/main/res/layout-land/activity_view_subreddit_detail.xml index b265259b..7f0f7284 100644 --- a/app/src/main/res/layout-land/activity_view_subreddit_detail.xml +++ b/app/src/main/res/layout-land/activity_view_subreddit_detail.xml @@ -15,130 +15,141 @@ - + android:layout_height="wrap_content" + android:orientation="vertical"> + android:contentDescription="@string/content_description_banner_imageview" + android:scaleType="centerCrop" /> - - - + android:padding="16dp"> + + + app:layout_constraintVertical_chainStyle="packed" + app:layout_constraintStart_toEndOf="@id/icon_gif_image_view_view_subreddit_detail_activity" + app:layout_constraintTop_toTopOf="@id/icon_gif_image_view_view_subreddit_detail_activity" + app:layout_constraintBottom_toTopOf="@id/subscribe_subreddit_chip_view_subreddit_detail_activity" /> + android:layout_marginStart="16dp" + app:chipStrokeColor="#00000000" + app:layout_constraintStart_toEndOf="@id/icon_gif_image_view_view_subreddit_detail_activity" + app:layout_constraintTop_toBottomOf="@id/subreddit_name_text_view_view_subreddit_detail_activity" + app:layout_constraintBottom_toBottomOf="@id/icon_gif_image_view_view_subreddit_detail_activity" /> - - - - - - - - - - - - - + android:fontFamily="?attr/font_family" + android:textSize="?attr/font_default" + app:layout_constraintEnd_toStartOf="@id/barrier" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/barrier5" + app:layout_constraintHorizontal_bias="0" /> + + + android:text="@string/since" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toBottomOf="@id/barrier5" /> + + + + + + + + + + - + - + - + android:layout_height="wrap_content" + android:orientation="vertical"> + android:contentDescription="@string/content_description_banner_imageview" + android:scaleType="centerCrop" /> - - - + android:padding="16dp"> + + + app:layout_constraintVertical_chainStyle="packed" + app:layout_constraintStart_toEndOf="@id/icon_gif_image_view_view_subreddit_detail_activity" + app:layout_constraintTop_toTopOf="@id/icon_gif_image_view_view_subreddit_detail_activity" + app:layout_constraintBottom_toTopOf="@id/subscribe_subreddit_chip_view_subreddit_detail_activity" /> + android:layout_marginStart="16dp" + app:chipStrokeColor="#00000000" + app:layout_constraintStart_toEndOf="@id/icon_gif_image_view_view_subreddit_detail_activity" + app:layout_constraintTop_toBottomOf="@id/subreddit_name_text_view_view_subreddit_detail_activity" + app:layout_constraintBottom_toBottomOf="@id/icon_gif_image_view_view_subreddit_detail_activity" /> - - - - - - - - - - - - - + android:fontFamily="?attr/font_family" + android:textSize="?attr/font_default" + app:layout_constraintEnd_toStartOf="@id/barrier" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/barrier5" + app:layout_constraintHorizontal_bias="0" /> + + + android:text="@string/since" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toBottomOf="@id/barrier5" /> + + + + + + + + + + - + - + - + android:layout_height="wrap_content" + android:orientation="vertical"> + android:contentDescription="@string/content_description_banner_imageview" + android:scaleType="centerCrop" /> - - - + android:padding="16dp"> + + + app:layout_constraintVertical_chainStyle="packed" + app:layout_constraintStart_toEndOf="@id/icon_gif_image_view_view_subreddit_detail_activity" + app:layout_constraintTop_toTopOf="@id/icon_gif_image_view_view_subreddit_detail_activity" + app:layout_constraintBottom_toTopOf="@id/subscribe_subreddit_chip_view_subreddit_detail_activity" /> + android:layout_marginStart="16dp" + app:chipStrokeColor="#00000000" + app:layout_constraintStart_toEndOf="@id/icon_gif_image_view_view_subreddit_detail_activity" + app:layout_constraintTop_toBottomOf="@id/subreddit_name_text_view_view_subreddit_detail_activity" + app:layout_constraintBottom_toBottomOf="@id/icon_gif_image_view_view_subreddit_detail_activity" /> - - - - - - - - - - - - - + android:fontFamily="?attr/font_family" + android:textSize="?attr/font_default" + app:layout_constraintEnd_toStartOf="@id/barrier" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/barrier5" + app:layout_constraintHorizontal_bias="0" /> + + + + + + + android:textSize="?attr/font_default" + android:visibility="gone" + app:layout_constraintTop_toBottomOf="@id/barrier6" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintBottom_toBottomOf="parent" + tools:visibility="visible" /> + + + + + + - + - +