aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2021-09-06 14:59:05 +0000
committerAlex Ning <chineseperson5@gmail.com>2021-09-06 14:59:05 +0000
commita725f7eb3a11b45b21bc02f182564e5db9b1714c (patch)
tree4961569df60283360ae314d7482a4f026ca51164 /app/src/main/res/layout
parent1f02fcd0dabc7a08877e2769357565a2296d0006 (diff)
downloadinfinity-for-reddit-a725f7eb3a11b45b21bc02f182564e5db9b1714c.tar
infinity-for-reddit-a725f7eb3a11b45b21bc02f182564e5db9b1714c.tar.gz
infinity-for-reddit-a725f7eb3a11b45b21bc02f182564e5db9b1714c.tar.bz2
infinity-for-reddit-a725f7eb3a11b45b21bc02f182564e5db9b1714c.tar.lz
infinity-for-reddit-a725f7eb3a11b45b21bc02f182564e5db9b1714c.tar.xz
infinity-for-reddit-a725f7eb3a11b45b21bc02f182564e5db9b1714c.tar.zst
infinity-for-reddit-a725f7eb3a11b45b21bc02f182564e5db9b1714c.zip
Use withLoadStateFooter to show load state.
Diffstat (limited to '')
-rw-r--r--app/src/main/res/layout/item_paging_3_load_state.xml45
1 files changed, 45 insertions, 0 deletions
diff --git a/app/src/main/res/layout/item_paging_3_load_state.xml b/app/src/main/res/layout/item_paging_3_load_state.xml
new file mode 100644
index 00000000..321b8e14
--- /dev/null
+++ b/app/src/main/res/layout/item_paging_3_load_state.xml
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="utf-8"?>
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
+
+ <ProgressBar
+ android:id="@+id/progress_bar_item_paging_3_load_state"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center"
+ android:layout_marginTop="8dp"
+ android:layout_marginBottom="16dp" />
+
+ <RelativeLayout
+ android:id="@+id/error_view_relative_layout_item_paging_3_load_state"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="16dp"
+ android:layout_marginTop="8dp"
+ android:layout_marginEnd="16dp"
+ android:layout_marginBottom="16dp">
+
+ <TextView
+ android:id="@+id/error_text_view_item_paging_3_load_state"
+ 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_paging_3_load_state"
+ android:textSize="?attr/font_18"
+ android:fontFamily="?attr/font_family" />
+
+ <Button
+ android:id="@+id/retry_button_item_paging_3_load_state"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentEnd="true"
+ android:layout_centerVertical="true"
+ android:text="@string/retry"
+ android:textSize="?attr/font_default"
+ android:fontFamily="?attr/font_family" />
+
+ </RelativeLayout>
+
+</FrameLayout> \ No newline at end of file