├── PullToRefresh ├── .gitignore ├── src │ └── main │ │ ├── ic_launcher-web.png │ │ ├── res │ │ ├── drawable-hdpi │ │ │ ├── arrow_up.png │ │ │ ├── arrow_down.png │ │ │ └── ic_launcher.png │ │ ├── drawable-mdpi │ │ │ └── ic_launcher.png │ │ ├── drawable-xhdpi │ │ │ └── ic_launcher.png │ │ ├── drawable-xxhdpi │ │ │ └── ic_launcher.png │ │ ├── values │ │ │ ├── color.xml │ │ │ ├── dimens.xml │ │ │ ├── styles.xml │ │ │ └── strings.xml │ │ ├── values-sw600dp │ │ │ └── dimens.xml │ │ ├── menu │ │ │ └── main.xml │ │ ├── values-sw720dp-land │ │ │ └── dimens.xml │ │ ├── layout │ │ │ ├── vw_list_item.xml │ │ │ ├── act_list_view.xml │ │ │ ├── act_scroll_view.xml │ │ │ ├── vw_scroll_view_content.xml │ │ │ ├── vw_xscrollview_layout.xml │ │ │ ├── act_main.xml │ │ │ ├── vw_footer.xml │ │ │ └── vw_header.xml │ │ ├── values-v11 │ │ │ └── styles.xml │ │ └── values-v14 │ │ │ └── styles.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ └── com │ │ └── markmao │ │ └── pulltorefresh │ │ ├── ui │ │ ├── MainActivity.java │ │ ├── XListViewActivity.java │ │ └── XScrollViewActivity.java │ │ └── widget │ │ ├── XHeaderView.java │ │ ├── XFooterView.java │ │ ├── XListView.java │ │ └── XScrollView.java └── build.gradle ├── settings.gradle ├── Screenshots ├── 0.png ├── 1.png ├── 2.png └── 3.png ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore ├── gradlew.bat ├── README.md ├── gradlew └── LICENSE /PullToRefresh/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':PullToRefresh' 2 | -------------------------------------------------------------------------------- /Screenshots/0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkMjw/PullToRefresh/HEAD/Screenshots/0.png -------------------------------------------------------------------------------- /Screenshots/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkMjw/PullToRefresh/HEAD/Screenshots/1.png -------------------------------------------------------------------------------- /Screenshots/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkMjw/PullToRefresh/HEAD/Screenshots/2.png -------------------------------------------------------------------------------- /Screenshots/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkMjw/PullToRefresh/HEAD/Screenshots/3.png -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkMjw/PullToRefresh/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /PullToRefresh/src/main/ic_launcher-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkMjw/PullToRefresh/HEAD/PullToRefresh/src/main/ic_launcher-web.png -------------------------------------------------------------------------------- /PullToRefresh/src/main/res/drawable-hdpi/arrow_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkMjw/PullToRefresh/HEAD/PullToRefresh/src/main/res/drawable-hdpi/arrow_up.png -------------------------------------------------------------------------------- /PullToRefresh/src/main/res/drawable-hdpi/arrow_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkMjw/PullToRefresh/HEAD/PullToRefresh/src/main/res/drawable-hdpi/arrow_down.png -------------------------------------------------------------------------------- /PullToRefresh/src/main/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkMjw/PullToRefresh/HEAD/PullToRefresh/src/main/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /PullToRefresh/src/main/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkMjw/PullToRefresh/HEAD/PullToRefresh/src/main/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /PullToRefresh/src/main/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkMjw/PullToRefresh/HEAD/PullToRefresh/src/main/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /PullToRefresh/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkMjw/PullToRefresh/HEAD/PullToRefresh/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /PullToRefresh/src/main/res/values/color.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #00000000 4 | #F7F4F0 5 | #333333 6 | 7 | -------------------------------------------------------------------------------- /PullToRefresh/src/main/res/values-sw600dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Sat Mar 01 23:19:10 GMT+08:00 2014 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.2.1-all.zip 7 | -------------------------------------------------------------------------------- /PullToRefresh/src/main/res/menu/main.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | -------------------------------------------------------------------------------- /PullToRefresh/src/main/res/values-sw720dp-land/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 128dp 5 | 6 | -------------------------------------------------------------------------------- /PullToRefresh/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 21 5 | buildToolsVersion "21.1.2" 6 | compileOptions.encoding = "UTF-8" 7 | 8 | defaultConfig { 9 | minSdkVersion 8 10 | targetSdkVersion 21 11 | } 12 | } 13 | 14 | dependencies { 15 | compile 'com.android.support:appcompat-v7:21.0.3' 16 | } 17 | -------------------------------------------------------------------------------- /PullToRefresh/src/main/res/layout/vw_list_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /PullToRefresh/src/main/res/values-v11/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /PullToRefresh/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | 60dp 7 | 90dp 8 | 10dp 9 | 10 | -------------------------------------------------------------------------------- /PullToRefresh/src/main/res/values-v14/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # built application files 2 | *.apk 3 | *.ap_ 4 | 5 | # files for the dex VM 6 | *.dex 7 | 8 | # Java class files 9 | *.class 10 | 11 | # generated files 12 | bin/ 13 | gen/ 14 | 15 | # Local configuration file (sdk path, etc) 16 | local.properties 17 | 18 | # Eclipse project files 19 | .classpath 20 | .project 21 | 22 | # Proguard folder generated by Eclipse 23 | proguard/ 24 | 25 | # Intellij project files 26 | *.iml 27 | *.ipr 28 | *.iws 29 | .idea/ 30 | /.gradle/ 31 | -------------------------------------------------------------------------------- /PullToRefresh/src/main/res/layout/act_list_view.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 12 | -------------------------------------------------------------------------------- /PullToRefresh/src/main/res/layout/act_scroll_view.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 12 | -------------------------------------------------------------------------------- /PullToRefresh/src/main/res/layout/vw_scroll_view_content.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 13 | -------------------------------------------------------------------------------- /PullToRefresh/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 14 | 15 | 16 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /PullToRefresh/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | PullToRefresh 5 | Settings 6 | Hello world! 7 | 8 | ScrollView demo 9 | ListView demo 10 | 11 | Pull to refresh 12 | Release to refresh 13 | Refreshing… 14 | Time: 15 | Load more 16 | Release to load more 17 | 18 | 19 | -------------------------------------------------------------------------------- /PullToRefresh/src/main/res/layout/vw_xscrollview_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 14 | 15 | 21 | 22 | 28 | 29 | -------------------------------------------------------------------------------- /PullToRefresh/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 12 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 25 | 26 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /PullToRefresh/src/main/res/layout/act_main.xml: -------------------------------------------------------------------------------- 1 | 11 | 12 |