Fixed bugs in CommentRecyclerViewAdapter. Minor layout tweaks.

This commit is contained in:
Alex Ning
2019-06-26 12:03:41 +08:00
parent c4690a6e38
commit a22b491a30
5 changed files with 88 additions and 65 deletions

View File

@@ -1,8 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:padding="36dp"
android:text="@string/post_load_comments_failed"
android:drawableTop="@drawable/load_post_error_indicator"/>
android:layout_marginTop="36dp"
android:orientation="vertical">
<ImageView
android:layout_width="150dp"
android:layout_height="150dp"
android:layout_gravity="center_horizontal"
android:src="@drawable/load_post_error_indicator"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:text="@string/post_load_comments_failed"/>
</LinearLayout>

View File

@@ -1,8 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/no_comments_yet"
android:gravity="center"
android:padding="36dp"
android:drawableTop="@drawable/no_comment_placeholder"/>
android:layout_marginTop="36dp"
android:orientation="vertical">
<ImageView
android:layout_width="150dp"
android:layout_height="150dp"
android:layout_gravity="center_horizontal"
android:src="@drawable/no_comment_placeholder" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:text="@string/no_comments_yet" />
</LinearLayout>