├── app ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── mipmap-hdpi │ │ │ │ ├── sye.jpg │ │ │ │ ├── header1.jpg │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── colors.xml │ │ │ │ ├── dimens.xml │ │ │ │ └── styles.xml │ │ │ ├── values-v21 │ │ │ │ └── styles.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ ├── layout │ │ │ │ ├── recycler_header.xml │ │ │ │ ├── recycler_item.xml │ │ │ │ ├── recycler_footer.xml │ │ │ │ ├── content_main.xml │ │ │ │ ├── activity_main.xml │ │ │ │ └── recycler_header2.xml │ │ │ └── menu │ │ │ │ └── menu_main.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── space │ │ │ └── sye │ │ │ └── z │ │ │ └── recyclerviewmanager │ │ │ └── MainActivity.java │ ├── test │ │ └── java │ │ │ └── space │ │ │ └── sye │ │ │ └── z │ │ │ └── recyclerviewmanager │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── space │ │ └── sye │ │ └── z │ │ └── recyclerviewmanager │ │ └── ApplicationTest.java ├── proguard-rules.pro ├── build.gradle └── app.iml ├── .idea ├── .name ├── copyright │ └── profiles_settings.xml ├── encodings.xml ├── vcs.xml ├── libraries │ ├── junit_4_12.xml │ ├── hamcrest_core_1_3.xml │ ├── ultra_ptr_1_0_11.xml │ ├── support_annotations_23_1_1.xml │ ├── design_23_1_1.xml │ ├── recyclerview_v7_23_1_1.xml │ ├── recyclerview_v7_23_1_0.xml │ ├── appcompat_v7_23_1_1.xml │ └── support_v4_23_1_1.xml ├── modules.xml ├── runConfigurations.xml ├── compiler.xml ├── gradle.xml └── misc.xml ├── library ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── mipmap-hdpi │ │ │ │ ├── default_ptr_flip.png │ │ │ │ ├── indicator_arrow.png │ │ │ │ ├── refresh_complete.png │ │ │ │ └── default_ptr_rotate.png │ │ │ ├── values │ │ │ │ ├── styles.xml │ │ │ │ └── strings.xml │ │ │ └── layout │ │ │ │ ├── loadinglayout.xml │ │ │ │ └── header_refresh.xml │ │ ├── java │ │ │ └── space │ │ │ │ └── sye │ │ │ │ └── z │ │ │ │ └── library │ │ │ │ ├── manager │ │ │ │ ├── RecyclerMode.java │ │ │ │ ├── HeaderSapnSizeLookUp.java │ │ │ │ ├── RecyclerViewManager.java │ │ │ │ └── RefreshRecyclerAdapterManager.java │ │ │ │ ├── listener │ │ │ │ ├── OnLoadMoreListener.java │ │ │ │ ├── OnPullDownListener.java │ │ │ │ ├── OnBothRefreshListener.java │ │ │ │ └── LoadMoreRecyclerListener.java │ │ │ │ ├── holder │ │ │ │ └── RecyclerHeaderViewHolder.java │ │ │ │ ├── widget │ │ │ │ ├── RefreshLoadingLayout.java │ │ │ │ ├── FlipLoadingLayout.java │ │ │ │ ├── RotateLoadingLayout.java │ │ │ │ └── RefreshHeader.java │ │ │ │ ├── RefreshRecyclerView.java │ │ │ │ └── adapter │ │ │ │ └── RefreshRecyclerViewAdapter.java │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── space │ │ │ └── sye │ │ │ └── z │ │ │ └── library │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── space │ │ └── sye │ │ └── z │ │ └── library │ │ └── ApplicationTest.java ├── proguard-rules.pro ├── build.gradle └── library.iml ├── settings.gradle ├── background_hd.jpg ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore ├── gradle.properties ├── RecyclerViewManager.iml ├── LICENSE ├── gradlew.bat ├── README.md └── gradlew /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /.idea/.name: -------------------------------------------------------------------------------- 1 | RecyclerViewManager -------------------------------------------------------------------------------- /library/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':library' 2 | -------------------------------------------------------------------------------- /background_hd.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syehunter/RecyclerViewManager/HEAD/background_hd.jpg -------------------------------------------------------------------------------- /.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syehunter/RecyclerViewManager/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/sye.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syehunter/RecyclerViewManager/HEAD/app/src/main/res/mipmap-hdpi/sye.jpg -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/header1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syehunter/RecyclerViewManager/HEAD/app/src/main/res/mipmap-hdpi/header1.jpg -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syehunter/RecyclerViewManager/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syehunter/RecyclerViewManager/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syehunter/RecyclerViewManager/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syehunter/RecyclerViewManager/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syehunter/RecyclerViewManager/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /library/src/main/res/mipmap-hdpi/default_ptr_flip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syehunter/RecyclerViewManager/HEAD/library/src/main/res/mipmap-hdpi/default_ptr_flip.png -------------------------------------------------------------------------------- /library/src/main/res/mipmap-hdpi/indicator_arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syehunter/RecyclerViewManager/HEAD/library/src/main/res/mipmap-hdpi/indicator_arrow.png -------------------------------------------------------------------------------- /library/src/main/res/mipmap-hdpi/refresh_complete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syehunter/RecyclerViewManager/HEAD/library/src/main/res/mipmap-hdpi/refresh_complete.png -------------------------------------------------------------------------------- /library/src/main/res/mipmap-hdpi/default_ptr_rotate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syehunter/RecyclerViewManager/HEAD/library/src/main/res/mipmap-hdpi/default_ptr_rotate.png -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | RecyclerViewManager 3 | Settings 4 | 5 | -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /library/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /library/src/main/java/space/sye/z/library/manager/RecyclerMode.java: -------------------------------------------------------------------------------- 1 | package space.sye.z.library.manager; 2 | 3 | /** 4 | * Created by Syehunter on 2015/11/19. 5 | */ 6 | public enum RecyclerMode { 7 | 8 | NONE, BOTH, TOP, BOTTOM 9 | 10 | } 11 | -------------------------------------------------------------------------------- /library/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | library 3 | 正在加载… 4 | 正在刷新… 5 | 刷新完成 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /library/src/main/java/space/sye/z/library/listener/OnLoadMoreListener.java: -------------------------------------------------------------------------------- 1 | package space.sye.z.library.listener; 2 | 3 | /** 4 | * Created by Syehunter on 2015/11/21. 5 | */ 6 | public interface OnLoadMoreListener { 7 | 8 | void onLoadMore(); 9 | } 10 | -------------------------------------------------------------------------------- /library/src/main/java/space/sye/z/library/listener/OnPullDownListener.java: -------------------------------------------------------------------------------- 1 | package space.sye.z.library.listener; 2 | 3 | /** 4 | * Created by Syehunter on 2015/11/21. 5 | */ 6 | public interface OnPullDownListener { 7 | 8 | void onPullDown(); 9 | 10 | } 11 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Oct 21 11:34:03 PDT 2015 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 16dp 6 | 7 | -------------------------------------------------------------------------------- /library/src/main/java/space/sye/z/library/listener/OnBothRefreshListener.java: -------------------------------------------------------------------------------- 1 | package space.sye.z.library.listener; 2 | 3 | /** 4 | * Created by Syehunter on 2015/11/21. 5 | */ 6 | public interface OnBothRefreshListener { 7 | 8 | void onPullDown(); 9 | 10 | void onLoadMore(); 11 | } 12 | -------------------------------------------------------------------------------- /library/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/values-v21/styles.xml: -------------------------------------------------------------------------------- 1 | > 2 | 3 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Built application files 2 | *.apk 3 | *.ap_ 4 | 5 | # Files for the Dalvik VM 6 | *.dex 7 | 8 | # Java class files 9 | *.class 10 | 11 | # Generated files 12 | bin/ 13 | gen/ 14 | 15 | # Gradle files 16 | .gradle/ 17 | build/ 18 | /*/build/ 19 | 20 | # Local configuration file (sdk path, etc) 21 | local.properties 22 | 23 | # Proguard folder generated by Eclipse 24 | proguard/ 25 | 26 | # Log Files 27 | *.log 28 | -------------------------------------------------------------------------------- /library/src/test/java/space/sye/z/library/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package space.sye.z.library; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * To work on unit tests, switch the Test Artifact in the Build Variants view. 9 | */ 10 | public class ExampleUnitTest { 11 | @Test 12 | public void addition_isCorrect() throws Exception { 13 | assertEquals(4, 2 + 2); 14 | } 15 | } -------------------------------------------------------------------------------- /app/src/test/java/space/sye/z/recyclerviewmanager/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package space.sye.z.recyclerviewmanager; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * To work on unit tests, switch the Test Artifact in the Build Variants view. 9 | */ 10 | public class ExampleUnitTest { 11 | @Test 12 | public void addition_isCorrect() throws Exception { 13 | assertEquals(4, 2 + 2); 14 | } 15 | } -------------------------------------------------------------------------------- /app/src/main/res/layout/recycler_header.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 10 | 11 | -------------------------------------------------------------------------------- /library/src/androidTest/java/space/sye/z/library/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package space.sye.z.library; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /app/src/androidTest/java/space/sye/z/recyclerviewmanager/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package space.sye.z.recyclerviewmanager; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /.idea/libraries/junit_4_12.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/layout/recycler_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 13 | 14 | -------------------------------------------------------------------------------- /.idea/libraries/hamcrest_core_1_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/libraries/ultra_ptr_1_0_11.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/layout/recycler_footer.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 15 | 16 | -------------------------------------------------------------------------------- /library/src/main/java/space/sye/z/library/holder/RecyclerHeaderViewHolder.java: -------------------------------------------------------------------------------- 1 | /** 2 | * @(#) z.sye.space.refreshrecyclerview.holder 2015/11/18; 3 | *

4 | * Copyright (c), 2009 深圳孔方兄金融信息服务有限公司(Shenzhen kfxiong 5 | * Financial Information Service Co. Ltd.) 6 | *

7 | * 著作权人保留一切权利,任何使用需经授权。 8 | */ 9 | package space.sye.z.library.holder; 10 | 11 | import android.support.v7.widget.RecyclerView; 12 | import android.view.View; 13 | 14 | /** 15 | * Created by Syehunter on 2015/11/18. 16 | */ 17 | public class RecyclerHeaderViewHolder extends RecyclerView.ViewHolder { 18 | 19 | public RecyclerHeaderViewHolder(View itemView) { 20 | super(itemView); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in F:\SDK/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /library/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in F:\SDK/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /.idea/libraries/support_annotations_23_1_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/layout/content_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 15 | 16 | -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /library/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.library' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "23.0.2" 6 | 7 | defaultConfig { 8 | minSdkVersion 15 9 | targetSdkVersion 23 10 | versionCode 12 11 | versionName "0.1.6.6" 12 | } 13 | buildTypes { 14 | release { 15 | minifyEnabled false 16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 17 | } 18 | } 19 | } 20 | 21 | dependencies { 22 | compile fileTree(dir: 'libs', include: ['*.jar']) 23 | testCompile 'junit:junit:4.12' 24 | compile 'com.android.support:appcompat-v7:23.1.1' 25 | compile 'com.android.support:recyclerview-v7:23.1.0' 26 | compile 'in.srain.cube:ultra-ptr:1.0.11' 27 | } 28 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 15 | 16 |