Use MVVM design pattern to load and display the posts. Minor bugs fixed.

This commit is contained in:
Alex Ning
2018-11-09 12:30:31 +08:00
parent 4373d3aa55
commit cdcb38db51
10 changed files with 358 additions and 331 deletions

View File

@@ -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" />

View File

@@ -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"/>