From 8f20302e45e96b2b3f91993101a2f08be1599f47 Mon Sep 17 00:00:00 2001 From: HuangShuisheng Date: Mon, 16 Oct 2017 11:11:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3retryevent=E5=A4=84=E7=9A=84?= =?UTF-8?q?=E9=80=BB=E8=BE=91bug,=E6=9B=B4=E6=96=B0api,=E6=8F=90=E4=BE=9B?= =?UTF-8?q?=E5=8C=85=E8=A3=85=E7=B1=BBdemo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/gradle.xml | 2 +- .../animated_vector_drawable_24_2_1.xml | 7 +- .idea/libraries/appcompat_v7_24_2_1.xml | 11 +- .idea/libraries/butterknife_8_7_0.xml | 12 + .../butterknife_annotations_8_7_0.xml | 11 + .idea/libraries/library_2_4_0.xml | 11 + .../libraries/support_annotations_24_2_1.xml | 4 +- .../libraries/support_annotations_25_3_0.xml | 11 + .idea/libraries/support_compat_24_2_1.xml | 13 +- .idea/libraries/support_compat_25_3_0.xml | 12 + .idea/libraries/support_core_ui_24_2_1.xml | 13 +- .idea/libraries/support_core_utils_24_2_1.xml | 9 +- .idea/libraries/support_fragment_24_2_1.xml | 13 +- .../libraries/support_media_compat_24_2_1.xml | 13 +- .idea/libraries/support_v4_24_2_1.xml | 4 +- .../support_vector_drawable_24_2_1.xml | 7 +- .idea/misc.xml | 2 +- .idea/modules.xml | 1 + .idea/vcs.xml | 6 + README.md | 73 +++-- app/build.gradle | 5 +- app/src/main/AndroidManifest.xml | 5 +- .../com/hss01248/pagestate/demo/BaseApp.java | 18 ++ .../hss01248/pagestate/demo/CustomUIActy.java | 75 +++++ .../hss01248/pagestate/demo/LoadingView.java | 266 ++++++++++++++++++ .../hss01248/pagestate/demo/MainActivity.java | 26 +- .../pagestate/demo/ShapeLoadingView.java | 247 ++++++++++++++++ .../hss01248/pagestate/demo/SplashActy.java | 43 +++ .../demo/pagemanager/MyPageListener.java | 87 ++++++ .../demo/pagemanager/MyPageManager.java | 74 +++++ app/src/main/res/attr/loading_arrts.xml | 7 + .../main/res/drawable-xhdpi/ic_error_page.png | Bin .../res/drawable-xxhdpi/ic_empty_page.webp | Bin .../src/main/res/drawable/btn_normal.9.png | Bin .../src/main/res/drawable/btn_pressed.9.png | Bin app/src/main/res/drawable/loading_shadow.xml | 7 + .../main/res/drawable/progressstyleshape.xml | 0 .../src/main/res/drawable/selector_btn_bg.xml | 0 app/src/main/res/layout/activity_main.xml | 5 +- app/src/main/res/layout/acty_splash.xml | 19 ++ app/src/main/res/layout/load_view.xml | 42 +++ app/src/main/res/layout/pager_empty_aku.xml | 24 ++ app/src/main/res/layout/pager_error_aku.xml | 39 +++ app/src/main/res/layout/pager_loading_aku.xml | 8 + .../main/res/mipmap-xhdpi/network_error.png | Bin 0 -> 99979 bytes app/src/main/res/values-w820dp/dimens.xml | 6 - app/src/main/res/values/colors.xml | 6 + lib/src/main/res/layout/pager_empty.xml | 25 -- lib/src/main/res/layout/pager_error.xml | 46 --- lib/src/main/res/layout/pager_loading.xml | 29 -- lib/src/main/res/values/strings.xml | 3 - {lib => pagestate}/.gitignore | 0 {lib => pagestate}/build.gradle | 0 {lib => pagestate}/proguard-rules.pro | 0 .../hss01248/pagestate/ApplicationTest.java | 0 .../src/main/AndroidManifest.xml | 0 .../com/hss01248/pagestate/PageLayout.java | 1 + .../com/hss01248/pagestate/PageListener.java | 10 +- .../com/hss01248/pagestate/PageManager.java | 176 ++++++------ .../hss01248/pagestate/PageStateConfig.java | 24 ++ pagestate/src/main/res/values/strings.xml | 3 + .../hss01248/pagestate/ExampleUnitTest.java | 0 settings.gradle | 2 +- 63 files changed, 1247 insertions(+), 316 deletions(-) create mode 100644 .idea/libraries/butterknife_8_7_0.xml create mode 100644 .idea/libraries/butterknife_annotations_8_7_0.xml create mode 100644 .idea/libraries/library_2_4_0.xml create mode 100644 .idea/libraries/support_annotations_25_3_0.xml create mode 100644 .idea/libraries/support_compat_25_3_0.xml create mode 100644 .idea/vcs.xml create mode 100644 app/src/main/java/com/hss01248/pagestate/demo/BaseApp.java create mode 100644 app/src/main/java/com/hss01248/pagestate/demo/CustomUIActy.java create mode 100644 app/src/main/java/com/hss01248/pagestate/demo/LoadingView.java create mode 100644 app/src/main/java/com/hss01248/pagestate/demo/ShapeLoadingView.java create mode 100644 app/src/main/java/com/hss01248/pagestate/demo/SplashActy.java create mode 100644 app/src/main/java/com/hss01248/pagestate/demo/pagemanager/MyPageListener.java create mode 100644 app/src/main/java/com/hss01248/pagestate/demo/pagemanager/MyPageManager.java create mode 100644 app/src/main/res/attr/loading_arrts.xml rename {lib => app}/src/main/res/drawable-xhdpi/ic_error_page.png (100%) rename {lib => app}/src/main/res/drawable-xxhdpi/ic_empty_page.webp (100%) rename {lib => app}/src/main/res/drawable/btn_normal.9.png (100%) rename {lib => app}/src/main/res/drawable/btn_pressed.9.png (100%) create mode 100644 app/src/main/res/drawable/loading_shadow.xml rename {lib => app}/src/main/res/drawable/progressstyleshape.xml (100%) rename {lib => app}/src/main/res/drawable/selector_btn_bg.xml (100%) create mode 100644 app/src/main/res/layout/acty_splash.xml create mode 100644 app/src/main/res/layout/load_view.xml create mode 100644 app/src/main/res/layout/pager_empty_aku.xml create mode 100644 app/src/main/res/layout/pager_error_aku.xml create mode 100644 app/src/main/res/layout/pager_loading_aku.xml create mode 100644 app/src/main/res/mipmap-xhdpi/network_error.png delete mode 100644 app/src/main/res/values-w820dp/dimens.xml delete mode 100644 lib/src/main/res/layout/pager_empty.xml delete mode 100644 lib/src/main/res/layout/pager_error.xml delete mode 100644 lib/src/main/res/layout/pager_loading.xml delete mode 100644 lib/src/main/res/values/strings.xml rename {lib => pagestate}/.gitignore (100%) rename {lib => pagestate}/build.gradle (100%) rename {lib => pagestate}/proguard-rules.pro (100%) rename {lib => pagestate}/src/androidTest/java/com/hss01248/pagestate/ApplicationTest.java (100%) rename {lib => pagestate}/src/main/AndroidManifest.xml (100%) rename {lib => pagestate}/src/main/java/com/hss01248/pagestate/PageLayout.java (99%) rename {lib => pagestate}/src/main/java/com/hss01248/pagestate/PageListener.java (85%) rename {lib => pagestate}/src/main/java/com/hss01248/pagestate/PageManager.java (72%) create mode 100644 pagestate/src/main/java/com/hss01248/pagestate/PageStateConfig.java create mode 100644 pagestate/src/main/res/values/strings.xml rename {lib => pagestate}/src/test/java/com/hss01248/pagestate/ExampleUnitTest.java (100%) diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 1dec16d..319d595 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -10,7 +10,7 @@