From 86570d495996141d3c74eecf7fc1735f9168ae50 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Tue, 22 Jan 2019 22:28:05 +0800 Subject: Enlarge the area which contains subreddit or user name and icon for easier touching in ViewPostDetailActivity. Fixed subreddit icon cannot be loaded in ViewPostDetailActivity. Smoothly play gif subreddit icon in ViewPostDetailActivity. --- .../main/res/layout/activity_view_post_detail.xml | 52 +++++++++++++--------- app/src/main/res/layout/item_post.xml | 3 -- 2 files changed, 31 insertions(+), 24 deletions(-) (limited to 'app/src/main/res') diff --git a/app/src/main/res/layout/activity_view_post_detail.xml b/app/src/main/res/layout/activity_view_post_detail.xml index bb2bd0e2..103edf40 100644 --- a/app/src/main/res/layout/activity_view_post_detail.xml +++ b/app/src/main/res/layout/activity_view_post_detail.xml @@ -26,38 +26,47 @@ android:layout_height="match_parent" android:orientation="vertical"> - - - + android:layout_height="wrap_content"> - + android:padding="16dp" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent"> + + + + + + + android:layout_gravity="center" + android:layout_marginEnd="16dp" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toTopOf="parent"/> - + @@ -72,9 +71,7 @@ android:id="@+id/title_text_view_best_post_item" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginLeft="16dp" android:layout_marginStart="16dp" - android:layout_marginRight="16dp" android:layout_marginEnd="16dp" android:textSize="18sp" android:textColor="#000000"/> -- cgit v1.2.3