aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2018-11-09 04:30:31 +0000
committerAlex Ning <chineseperson5@gmail.com>2018-11-09 04:30:31 +0000
commitcdcb38db51389c31185601eef6a6efe3be4d71f2 (patch)
tree592dfc22d67e28fddca0cdbee5ee23c6eed08495 /app/src/main/res
parent4373d3aa55845160fc81940af10755e7745b11b5 (diff)
downloadinfinity-for-reddit-cdcb38db51389c31185601eef6a6efe3be4d71f2.tar
infinity-for-reddit-cdcb38db51389c31185601eef6a6efe3be4d71f2.tar.gz
infinity-for-reddit-cdcb38db51389c31185601eef6a6efe3be4d71f2.tar.bz2
infinity-for-reddit-cdcb38db51389c31185601eef6a6efe3be4d71f2.tar.lz
infinity-for-reddit-cdcb38db51389c31185601eef6a6efe3be4d71f2.tar.xz
infinity-for-reddit-cdcb38db51389c31185601eef6a6efe3be4d71f2.tar.zst
infinity-for-reddit-cdcb38db51389c31185601eef6a6efe3be4d71f2.zip
Use MVVM design pattern to load and display the posts. Minor bugs fixed.
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/activity_view_post_detail.xml1
-rw-r--r--app/src/main/res/layout/item_post.xml1
2 files changed, 2 insertions, 0 deletions
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 6f6bac2a..56b8db56 100644
--- a/app/src/main/res/layout/activity_view_post_detail.xml
+++ b/app/src/main/res/layout/activity_view_post_detail.xml
@@ -50,6 +50,7 @@
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginStart="16dp"
+ android:layout_marginEnd="16dp"
android:layout_toEndOf="@id/subreddit_icon_circle_image_view_view_post_detail"
android:layout_toStartOf="@id/post_time_text_view_view_post_detail"
android:textColor="#E91E63" />
diff --git a/app/src/main/res/layout/item_post.xml b/app/src/main/res/layout/item_post.xml
index a2a99cce..fd65f268 100644
--- a/app/src/main/res/layout/item_post.xml
+++ b/app/src/main/res/layout/item_post.xml
@@ -45,6 +45,7 @@
android:layout_toStartOf="@id/post_time_text_view_best_post_item"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
+ android:layout_centerVertical="true"
android:tint="@color/colorPrimary"
android:visibility="gone"/>