aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2018-08-11 09:49:30 +0000
committerAlex Ning <chineseperson5@gmail.com>2018-08-11 09:49:30 +0000
commiteb973138f72b181f79d84bbf16c06f92760118e0 (patch)
treedd9495d830abcac15f81907dc0abd9e755fcfc02 /app/src/main/res/layout
parentc0eaf2d3bb599503d35753c69854d62275775f17 (diff)
downloadinfinity-for-reddit-eb973138f72b181f79d84bbf16c06f92760118e0.tar
infinity-for-reddit-eb973138f72b181f79d84bbf16c06f92760118e0.tar.gz
infinity-for-reddit-eb973138f72b181f79d84bbf16c06f92760118e0.tar.bz2
infinity-for-reddit-eb973138f72b181f79d84bbf16c06f92760118e0.tar.lz
infinity-for-reddit-eb973138f72b181f79d84bbf16c06f92760118e0.tar.xz
infinity-for-reddit-eb973138f72b181f79d84bbf16c06f92760118e0.tar.zst
infinity-for-reddit-eb973138f72b181f79d84bbf16c06f92760118e0.zip
Fixed a bug which causes the app to crash when there is no comment in a post. Add a no comment placeholder which is displayed when there is no comment in a post.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/activity_view_post_detail.xml24
1 files changed, 24 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 8f6627a7..e696acf3 100644
--- a/app/src/main/res/layout/activity_view_post_detail.xml
+++ b/app/src/main/res/layout/activity_view_post_detail.xml
@@ -250,6 +250,30 @@
</android.support.v7.widget.CardView>
+ <LinearLayout
+ android:id="@+id/no_comment_wrapper_linear_layout_view_post_detail"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="48dp"
+ android:layout_marginBottom="48dp"
+ android:orientation="vertical"
+ android:visibility="gone">
+
+ <ImageView
+ android:id="@+id/no_comment_image_view_view_post_detail"
+ android:layout_width="150dp"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_horizontal" />
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="16dp"
+ android:layout_gravity="center_horizontal"
+ android:text="@string/no_comments_yet"/>
+
+ </LinearLayout>
+
</LinearLayout>