diff options
author | Alex Ning <chineseperson5@gmail.com> | 2019-06-26 04:03:41 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2019-06-26 04:03:41 +0000 |
commit | a22b491a30a3ced7953883f0f0dfc3b783eef281 (patch) | |
tree | 9d6e7bd832110f66b53d3591621f270ff59e6af5 /app/src/main/res | |
parent | c4690a6e38004fa0442e6c15b9637ee209e9c2dd (diff) | |
download | infinity-for-reddit-a22b491a30a3ced7953883f0f0dfc3b783eef281.tar infinity-for-reddit-a22b491a30a3ced7953883f0f0dfc3b783eef281.tar.gz infinity-for-reddit-a22b491a30a3ced7953883f0f0dfc3b783eef281.tar.bz2 infinity-for-reddit-a22b491a30a3ced7953883f0f0dfc3b783eef281.tar.lz infinity-for-reddit-a22b491a30a3ced7953883f0f0dfc3b783eef281.tar.xz infinity-for-reddit-a22b491a30a3ced7953883f0f0dfc3b783eef281.tar.zst infinity-for-reddit-a22b491a30a3ced7953883f0f0dfc3b783eef281.zip |
Fixed bugs in CommentRecyclerViewAdapter. Minor layout tweaks.
Diffstat (limited to '')
-rw-r--r-- | app/src/main/res/layout/item_load_comments_failed_placeholder.xml | 22 | ||||
-rw-r--r-- | app/src/main/res/layout/item_no_comment_placeholder.xml | 22 |
2 files changed, 34 insertions, 10 deletions
diff --git a/app/src/main/res/layout/item_load_comments_failed_placeholder.xml b/app/src/main/res/layout/item_load_comments_failed_placeholder.xml index 476d3d2d..25af5d14 100644 --- a/app/src/main/res/layout/item_load_comments_failed_placeholder.xml +++ b/app/src/main/res/layout/item_load_comments_failed_placeholder.xml @@ -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"/>
\ No newline at end of file + 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>
\ No newline at end of file diff --git a/app/src/main/res/layout/item_no_comment_placeholder.xml b/app/src/main/res/layout/item_no_comment_placeholder.xml index becf93d4..707243c6 100644 --- a/app/src/main/res/layout/item_no_comment_placeholder.xml +++ b/app/src/main/res/layout/item_no_comment_placeholder.xml @@ -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"/>
\ No newline at end of file + 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>
\ No newline at end of file |