diff options
author | Alex Ning <chineseperson5@gmail.com> | 2019-11-11 07:27:11 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2019-11-11 07:27:11 +0000 |
commit | d7928436fea370395f389563f7c89e67e6853819 (patch) | |
tree | efd187d5b84badcf1d84e864e35210d9ff25228e /app/src/main/res/layout/item_post.xml | |
parent | a3ae945e3937b4bba6201f7088a805b9cc8b6629 (diff) | |
download | infinity-for-reddit-d7928436fea370395f389563f7c89e67e6853819.tar infinity-for-reddit-d7928436fea370395f389563f7c89e67e6853819.tar.gz infinity-for-reddit-d7928436fea370395f389563f7c89e67e6853819.tar.bz2 infinity-for-reddit-d7928436fea370395f389563f7c89e67e6853819.tar.lz infinity-for-reddit-d7928436fea370395f389563f7c89e67e6853819.tar.xz infinity-for-reddit-d7928436fea370395f389563f7c89e67e6853819.tar.zst infinity-for-reddit-d7928436fea370395f389563f7c89e67e6853819.zip |
Changing post layout in other activities is available. Show username in card layout posts.
Diffstat (limited to 'app/src/main/res/layout/item_post.xml')
-rw-r--r-- | app/src/main/res/layout/item_post.xml | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/app/src/main/res/layout/item_post.xml b/app/src/main/res/layout/item_post.xml index e54cbc5b..22b94789 100644 --- a/app/src/main/res/layout/item_post.xml +++ b/app/src/main/res/layout/item_post.xml @@ -38,11 +38,27 @@ android:layout_marginEnd="8dp" android:textColor="#E91E63" android:textSize="?attr/font_default" - app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintBottom_toTopOf="@id/user_text_view_item_post" app:layout_constraintStart_toEndOf="@id/icon_gif_image_view_item_post" app:layout_constraintEnd_toStartOf="@id/stickied_post_image_view_item_post" app:layout_constraintTop_toTopOf="parent"/> + <TextView + android:id="@+id/user_text_view_item_post" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_marginStart="16dp" + android:layout_marginEnd="8dp" + android:textColor="@color/colorPrimaryDarkDayNightTheme" + android:textSize="?attr/font_default" + android:maxLines="2" + android:ellipsize="end" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintStart_toEndOf="@+id/icon_gif_image_view_item_post" + app:layout_constraintEnd_toStartOf="@id/stickied_post_image_view_item_post" + app:layout_constraintTop_toBottomOf="@+id/name_text_view_item_post" + app:layout_constraintHorizontal_bias="0" /> + <ImageView android:id="@+id/stickied_post_image_view_item_post" android:layout_width="24dp" |