From 2913c1583b8001ebdf75babb2d663f3cf9167ca9 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Sun, 11 Aug 2019 16:44:46 +0800 Subject: Make nav bar white in day theme and change it to the same color as background color in some activities. Fixed nav bar icon color in dark theme. Minor UI tweaks. --- app/src/main/res/layout/item_comment.xml | 238 +++++----- .../layout/item_load_more_comments_placeholder.xml | 36 +- app/src/main/res/layout/item_post_detail.xml | 502 ++++++++++----------- app/src/main/res/values-night/colors.xml | 2 + app/src/main/res/values/colors.xml | 2 + 5 files changed, 383 insertions(+), 397 deletions(-) (limited to 'app/src/main/res') diff --git a/app/src/main/res/layout/item_comment.xml b/app/src/main/res/layout/item_comment.xml index d949904a..89db5a2f 100644 --- a/app/src/main/res/layout/item_comment.xml +++ b/app/src/main/res/layout/item_comment.xml @@ -1,140 +1,134 @@ - + + - - + android:layout_height="wrap_content" + android:layout_marginTop="12dp" + android:layout_marginBottom="12dp" + android:orientation="vertical"> + android:layout_marginStart="16dp" + android:layout_marginEnd="16dp"> - - - - - - - - - - - + + - - - - - - - - - - - - - - + android:gravity="end" /> + + + + + + + + + + + + + + + + + + - \ No newline at end of file + \ No newline at end of file diff --git a/app/src/main/res/layout/item_load_more_comments_placeholder.xml b/app/src/main/res/layout/item_load_more_comments_placeholder.xml index 5a006ff5..e9333e6e 100644 --- a/app/src/main/res/layout/item_load_more_comments_placeholder.xml +++ b/app/src/main/res/layout/item_load_more_comments_placeholder.xml @@ -1,27 +1,21 @@ - - - - + - - - + - \ No newline at end of file + \ No newline at end of file diff --git a/app/src/main/res/layout/item_post_detail.xml b/app/src/main/res/layout/item_post_detail.xml index 7d85466f..18cae54c 100644 --- a/app/src/main/res/layout/item_post_detail.xml +++ b/app/src/main/res/layout/item_post_detail.xml @@ -1,302 +1,296 @@ - + android:orientation="vertical"> - + android:layout_height="wrap_content"> - + + + - - - - - - - - - + android:layout_marginStart="16dp" + android:layout_alignParentTop="true" + android:layout_toEndOf="@id/icon_gif_image_view_item_post_detail" + android:textColor="@color/colorAccent" /> + android:layout_marginStart="16dp" + android:layout_alignParentBottom="true" + android:layout_below="@id/subreddit_text_view_item_post_detail" + android:layout_toEndOf="@id/icon_gif_image_view_item_post_detail" + android:textColor="@color/textColorPrimaryDark" /> - + + android:layout_gravity="center" + android:layout_marginEnd="16dp" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintStart_toEndOf="@id/subreddit_icon_name_relative_layout_item_post_detail" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toTopOf="parent"/> - + + + + + + + + + android:layout_marginEnd="16dp" + android:textColor="@android:color/white" + android:layout_centerVertical="true" + app:chipBackgroundColor="@color/backgroundColorPrimaryDark"/> - + + + android:layout_marginStart="4dp" + android:layout_marginEnd="8dp" + android:layout_toEndOf="@id/gilded_image_view_item_post_detail" + android:layout_centerVertical="true" + android:visibility="gone" + android:textSize="20sp" + android:textColor="@color/gold"/> - + - + - - - - - + - + - + + + android:layout_gravity="center" + android:layout_marginStart="16dp" + android:textSize="12sp" + android:textColor="@android:color/white" + android:padding="4dp" + android:visibility="gone" + app:lib_setRadius="3dp" + app:lib_setRoundedBorderColor="@color/textColorPrimaryDark" + app:lib_setRoundedView="true" + app:lib_setShape="rectangle" /> - - - + - + + + - + android:adjustViewBounds="true" + android:scaleType="fitStart"/> + android:layout_centerInParent="true"> - + android:layout_centerInParent="true" /> - - - - - - - + android:drawableTop="@drawable/ic_error_outline_black_24dp" + android:layout_centerInParent="true" + android:gravity="center" + android:text="@string/tap_to_retry" + android:visibility="gone" /> - - - + - - - + + + - - - + - + - + - \ No newline at end of file + + + + + \ No newline at end of file diff --git a/app/src/main/res/values-night/colors.xml b/app/src/main/res/values-night/colors.xml index 4827628f..590ba6ce 100644 --- a/app/src/main/res/values-night/colors.xml +++ b/app/src/main/res/values-night/colors.xml @@ -41,4 +41,6 @@ @color/colorPrimary @color/tabLayoutWithCollapsedCollapsingToolbarTextColor + + @color/backgroundColor diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index 2f5b389f..8b9eb013 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -41,4 +41,6 @@ @color/colorPrimary @color/tabLayoutWithCollapsedCollapsingToolbarTextColor + + #FFFFFF -- cgit v1.2.3