aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2019-06-27 07:17:37 +0000
committerAlex Ning <chineseperson5@gmail.com>2019-06-27 07:17:37 +0000
commit08bfa254bcbb2b9b15f0db3c772664427cbd606a (patch)
tree2cf85a4c7e64255ab12bc0841c2a733c5915a761 /app/src/main/res/layout
parentcfe0b357df14d57264dd28047bc5a362fc3c5fe6 (diff)
downloadinfinity-for-reddit-08bfa254bcbb2b9b15f0db3c772664427cbd606a.tar
infinity-for-reddit-08bfa254bcbb2b9b15f0db3c772664427cbd606a.tar.gz
infinity-for-reddit-08bfa254bcbb2b9b15f0db3c772664427cbd606a.tar.bz2
infinity-for-reddit-08bfa254bcbb2b9b15f0db3c772664427cbd606a.tar.lz
infinity-for-reddit-08bfa254bcbb2b9b15f0db3c772664427cbd606a.tar.xz
infinity-for-reddit-08bfa254bcbb2b9b15f0db3c772664427cbd606a.tar.zst
infinity-for-reddit-08bfa254bcbb2b9b15f0db3c772664427cbd606a.zip
Loading more comments in ViewPostDetailActivity is back. Display a progress bar when loading more comments. Display an error view when loading more comments failed.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/item_comment_footer_error.xml25
-rw-r--r--app/src/main/res/layout/item_comment_footer_loading.xml14
-rw-r--r--app/src/main/res/layout/item_footer_error.xml7
-rw-r--r--app/src/main/res/layout/item_footer_loading.xml1
4 files changed, 42 insertions, 5 deletions
diff --git a/app/src/main/res/layout/item_comment_footer_error.xml b/app/src/main/res/layout/item_comment_footer_error.xml
new file mode 100644
index 00000000..39195989
--- /dev/null
+++ b/app/src/main/res/layout/item_comment_footer_error.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/relative_layout_item_comment_footer_error"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_margin="16dp">
+
+ <TextView
+ android:id="@+id/error_text_view_item_comment_footer_error"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentStart="true"
+ android:layout_centerVertical="true"
+ android:layout_toStartOf="@id/retry_button_item_comment_footer_error"
+ android:textSize="18sp" />
+
+ <Button
+ android:id="@+id/retry_button_item_comment_footer_error"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentEnd="true"
+ android:layout_centerVertical="true"
+ android:text="@string/retry" />
+
+</RelativeLayout> \ No newline at end of file
diff --git a/app/src/main/res/layout/item_comment_footer_loading.xml b/app/src/main/res/layout/item_comment_footer_loading.xml
new file mode 100644
index 00000000..bf01664e
--- /dev/null
+++ b/app/src/main/res/layout/item_comment_footer_loading.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
+
+ <ProgressBar
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="16dp"
+ android:layout_marginBottom="16dp"
+ android:layout_centerHorizontal="true" />
+
+</RelativeLayout> \ No newline at end of file
diff --git a/app/src/main/res/layout/item_footer_error.xml b/app/src/main/res/layout/item_footer_error.xml
index e1d3c14b..f795adf9 100644
--- a/app/src/main/res/layout/item_footer_error.xml
+++ b/app/src/main/res/layout/item_footer_error.xml
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/relative_layout_footer_error_item"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
@@ -9,16 +8,16 @@
android:layout_marginBottom="16dp">
<TextView
- android:id="@+id/error_text_view_footer_error_item"
+ android:id="@+id/error_text_view_item_footer_error"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_centerVertical="true"
- android:layout_toStartOf="@id/retry_button_footer_error_item"
+ android:layout_toStartOf="@id/retry_button_item_footer_error"
android:textSize="18sp" />
<Button
- android:id="@+id/retry_button_footer_error_item"
+ android:id="@+id/retry_button_item_footer_error"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
diff --git a/app/src/main/res/layout/item_footer_loading.xml b/app/src/main/res/layout/item_footer_loading.xml
index 7cd0d8f2..9a4dce0e 100644
--- a/app/src/main/res/layout/item_footer_loading.xml
+++ b/app/src/main/res/layout/item_footer_loading.xml
@@ -5,7 +5,6 @@
android:layout_height="wrap_content">
<ProgressBar
- android:id="@+id/progress_bar_footer_progress_bar_item"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"