diff options
author | Alex Ning <chineseperson5@gmail.com> | 2019-07-29 16:30:45 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2019-07-29 16:30:45 +0000 |
commit | f07f01ce63eb24d86be6969f1d56548a8dd93c8c (patch) | |
tree | 15e6ab489417791b3b0b2939fa4cb11fa047ad51 /app/src/main/res/layout | |
parent | 453501b1ba4fd32458abe4b5a008130f74a86ff3 (diff) | |
download | infinity-for-reddit-f07f01ce63eb24d86be6969f1d56548a8dd93c8c.tar infinity-for-reddit-f07f01ce63eb24d86be6969f1d56548a8dd93c8c.tar.gz infinity-for-reddit-f07f01ce63eb24d86be6969f1d56548a8dd93c8c.tar.bz2 infinity-for-reddit-f07f01ce63eb24d86be6969f1d56548a8dd93c8c.tar.lz infinity-for-reddit-f07f01ce63eb24d86be6969f1d56548a8dd93c8c.tar.xz infinity-for-reddit-f07f01ce63eb24d86be6969f1d56548a8dd93c8c.tar.zst infinity-for-reddit-f07f01ce63eb24d86be6969f1d56548a8dd93c8c.zip |
Display both the subreddit and the user name in ViewPostDetailActivity.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/item_post_detail.xml | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/app/src/main/res/layout/item_post_detail.xml b/app/src/main/res/layout/item_post_detail.xml index fade8588..7d85466f 100644 --- a/app/src/main/res/layout/item_post_detail.xml +++ b/app/src/main/res/layout/item_post_detail.xml @@ -14,8 +14,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content"> - <LinearLayout - android:id="@+id/subreddit_icon_name_linear_layout_item_post_detail" + <RelativeLayout + android:id="@+id/subreddit_icon_name_relative_layout_item_post_detail" android:layout_width="0dp" android:layout_height="wrap_content" android:padding="16dp" @@ -26,20 +26,31 @@ app:layout_constraintTop_toTopOf="parent"> <CustomView.AspectRatioGifImageView - android:id="@+id/subreddit_icon_gif_image_view_item_post_detail" + android:id="@+id/icon_gif_image_view_item_post_detail" android:layout_width="24dp" android:layout_height="24dp" - android:layout_gravity="center"/> + android:layout_centerVertical="true" /> <TextView android:id="@+id/subreddit_text_view_item_post_detail" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="16dp" - android:layout_gravity="center" - android:textColor="#E91E63" /> + android:layout_alignParentTop="true" + android:layout_toEndOf="@id/icon_gif_image_view_item_post_detail" + android:textColor="@color/colorAccent" /> - </LinearLayout> + <TextView + android:id="@+id/user_text_view_item_post_detail" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + 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" /> + + </RelativeLayout> <TextView android:id="@+id/post_time_text_view_item_post_detail" @@ -48,7 +59,7 @@ android:layout_gravity="center" android:layout_marginEnd="16dp" app:layout_constraintBottom_toBottomOf="parent" - app:layout_constraintStart_toEndOf="@id/subreddit_icon_name_linear_layout_item_post_detail" + app:layout_constraintStart_toEndOf="@id/subreddit_icon_name_relative_layout_item_post_detail" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toTopOf="parent"/> |