From b7e1d92c7e45ee1b14ff53baebeb8af8dc6bbb5d Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Sat, 29 Dec 2018 13:38:18 +0800 Subject: Error handling for loading posts now works again. Don't show refresh button as an icon. Rewrite some code. --- app/src/main/res/layout/item_footer_error.xml | 28 +++++++++++++ app/src/main/res/layout/item_footer_loading.xml | 15 +++++++ .../main/res/layout/item_footer_progress_bar.xml | 47 ---------------------- app/src/main/res/menu/main_activity.xml | 2 +- 4 files changed, 44 insertions(+), 48 deletions(-) create mode 100644 app/src/main/res/layout/item_footer_error.xml create mode 100644 app/src/main/res/layout/item_footer_loading.xml delete mode 100644 app/src/main/res/layout/item_footer_progress_bar.xml (limited to 'app/src/main/res') diff --git a/app/src/main/res/layout/item_footer_error.xml b/app/src/main/res/layout/item_footer_error.xml new file mode 100644 index 00000000..bd653604 --- /dev/null +++ b/app/src/main/res/layout/item_footer_error.xml @@ -0,0 +1,28 @@ + + + + + +