aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/item_post.xml
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2019-11-11 07:27:11 +0000
committerAlex Ning <chineseperson5@gmail.com>2019-11-11 07:27:11 +0000
commitd7928436fea370395f389563f7c89e67e6853819 (patch)
treeefd187d5b84badcf1d84e864e35210d9ff25228e /app/src/main/res/layout/item_post.xml
parenta3ae945e3937b4bba6201f7088a805b9cc8b6629 (diff)
downloadinfinity-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.xml18
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"