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. --- .../activities/ViewSubredditDetailActivity.java | 2 +- .../layout-land/activity_view_subreddit_detail.xml | 191 +++++++++++---------- .../activity_view_subreddit_detail.xml | 191 +++++++++++---------- .../res/layout/activity_view_subreddit_detail.xml | 191 +++++++++++---------- 4 files changed, 304 insertions(+), 271 deletions(-) (limited to 'app/src') diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewSubredditDetailActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewSubredditDetailActivity.java index e95b0e6f..25869ef0 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewSubredditDetailActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewSubredditDetailActivity.java @@ -524,7 +524,7 @@ public class ViewSubredditDetailActivity extends BaseActivity implements SortTyp collapsedTabTextColor = mCustomThemeWrapper.getTabLayoutWithCollapsedCollapsingToolbarTextColor(); collapsedTabIndicatorColor = mCustomThemeWrapper.getTabLayoutWithCollapsedCollapsingToolbarTabIndicator(); collapsedTabBackgroundColor = mCustomThemeWrapper.getTabLayoutWithCollapsedCollapsingToolbarTabBackground(); - binding.toolbarLinearLayoutViewSubredditDetailActivity.setBackgroundColor(expandedTabBackgroundColor); + binding.toolbarConstraintLayoutViewSubredditDetailActivity.setBackgroundColor(expandedTabBackgroundColor); binding.subredditNameTextViewViewSubredditDetailActivity.setTextColor(mCustomThemeWrapper.getSubreddit()); binding.subscribeSubredditChipViewSubredditDetailActivity.setTextColor(mCustomThemeWrapper.getChipTextColor()); int primaryTextColor = mCustomThemeWrapper.getPrimaryTextColor(); 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" /> + + + + + + - + - +