├── app ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── colors.xml │ │ │ │ └── styles.xml │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ └── layout │ │ │ │ ├── activity_web_view.xml │ │ │ │ ├── adapter_item.xml │ │ │ │ ├── activity_list_view.xml │ │ │ │ ├── activity_recycler_view.xml │ │ │ │ ├── activity_main.xml │ │ │ │ ├── activity_scroll_view.xml │ │ │ │ └── activity_nested_scroll_view.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── donkingliang │ │ │ │ └── refreshlayout │ │ │ │ ├── SPUtil.java │ │ │ │ ├── adapter │ │ │ │ └── RecyclerAdapter.java │ │ │ │ ├── MainActivity.java │ │ │ │ ├── ScrollViewActivity.java │ │ │ │ ├── NestedScrollViewActivity.java │ │ │ │ ├── WebViewActivity.java │ │ │ │ ├── RecyclerViewActivity.java │ │ │ │ └── ListViewActivity.java │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── donkingliang │ │ │ └── refreshlayout │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── donkingliang │ │ └── refreshlayout │ │ └── ExampleInstrumentedTest.java ├── proguard-rules.pro └── build.gradle ├── refresh ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── drawable-xhdpi │ │ │ │ ├── loading1.png │ │ │ │ ├── loading2.png │ │ │ │ ├── loading3.png │ │ │ │ ├── loading4.png │ │ │ │ ├── loading5.png │ │ │ │ ├── loading6.png │ │ │ │ ├── loading7.png │ │ │ │ ├── loading8.png │ │ │ │ ├── loading9.png │ │ │ │ ├── loading10.png │ │ │ │ ├── loading11.png │ │ │ │ ├── loading12.png │ │ │ │ └── icon_down_arrow.png │ │ │ ├── values │ │ │ │ └── strings.xml │ │ │ ├── layout │ │ │ │ ├── footer_view_layout.xml │ │ │ │ └── header_view_layout.xml │ │ │ └── drawable │ │ │ │ └── progress_round.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── com │ │ │ └── donkingliang │ │ │ └── refresh │ │ │ ├── FooterView.java │ │ │ ├── HeaderView.java │ │ │ └── RefreshLayout.java │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── donkingliang │ │ │ └── refresh │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── donkingliang │ │ └── refresh │ │ └── ExampleInstrumentedTest.java ├── proguard-rules.pro └── build.gradle ├── settings.gradle ├── 效果图 ├── main.png ├── webview.png └── recyclerview.png ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore ├── gradle.properties ├── gradlew.bat ├── gradlew └── README.md /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /refresh/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':refresh' 2 | -------------------------------------------------------------------------------- /效果图/main.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donkingliang/RefreshLayout/HEAD/效果图/main.png -------------------------------------------------------------------------------- /效果图/webview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donkingliang/RefreshLayout/HEAD/效果图/webview.png -------------------------------------------------------------------------------- /效果图/recyclerview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donkingliang/RefreshLayout/HEAD/效果图/recyclerview.png -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | RefreshLayout 3 | 4 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donkingliang/RefreshLayout/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donkingliang/RefreshLayout/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donkingliang/RefreshLayout/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donkingliang/RefreshLayout/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donkingliang/RefreshLayout/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donkingliang/RefreshLayout/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /refresh/src/main/res/drawable-xhdpi/loading1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donkingliang/RefreshLayout/HEAD/refresh/src/main/res/drawable-xhdpi/loading1.png -------------------------------------------------------------------------------- /refresh/src/main/res/drawable-xhdpi/loading2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donkingliang/RefreshLayout/HEAD/refresh/src/main/res/drawable-xhdpi/loading2.png -------------------------------------------------------------------------------- /refresh/src/main/res/drawable-xhdpi/loading3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donkingliang/RefreshLayout/HEAD/refresh/src/main/res/drawable-xhdpi/loading3.png -------------------------------------------------------------------------------- /refresh/src/main/res/drawable-xhdpi/loading4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donkingliang/RefreshLayout/HEAD/refresh/src/main/res/drawable-xhdpi/loading4.png -------------------------------------------------------------------------------- /refresh/src/main/res/drawable-xhdpi/loading5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donkingliang/RefreshLayout/HEAD/refresh/src/main/res/drawable-xhdpi/loading5.png -------------------------------------------------------------------------------- /refresh/src/main/res/drawable-xhdpi/loading6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donkingliang/RefreshLayout/HEAD/refresh/src/main/res/drawable-xhdpi/loading6.png -------------------------------------------------------------------------------- /refresh/src/main/res/drawable-xhdpi/loading7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donkingliang/RefreshLayout/HEAD/refresh/src/main/res/drawable-xhdpi/loading7.png -------------------------------------------------------------------------------- /refresh/src/main/res/drawable-xhdpi/loading8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donkingliang/RefreshLayout/HEAD/refresh/src/main/res/drawable-xhdpi/loading8.png -------------------------------------------------------------------------------- /refresh/src/main/res/drawable-xhdpi/loading9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donkingliang/RefreshLayout/HEAD/refresh/src/main/res/drawable-xhdpi/loading9.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donkingliang/RefreshLayout/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donkingliang/RefreshLayout/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /refresh/src/main/res/drawable-xhdpi/loading10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donkingliang/RefreshLayout/HEAD/refresh/src/main/res/drawable-xhdpi/loading10.png -------------------------------------------------------------------------------- /refresh/src/main/res/drawable-xhdpi/loading11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donkingliang/RefreshLayout/HEAD/refresh/src/main/res/drawable-xhdpi/loading11.png -------------------------------------------------------------------------------- /refresh/src/main/res/drawable-xhdpi/loading12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donkingliang/RefreshLayout/HEAD/refresh/src/main/res/drawable-xhdpi/loading12.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donkingliang/RefreshLayout/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donkingliang/RefreshLayout/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donkingliang/RefreshLayout/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /refresh/src/main/res/drawable-xhdpi/icon_down_arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donkingliang/RefreshLayout/HEAD/refresh/src/main/res/drawable-xhdpi/icon_down_arrow.png -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri May 25 15:33:32 CST 2018 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-3.3-all.zip 7 | -------------------------------------------------------------------------------- /refresh/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /refresh/src/test/java/com/donkingliang/refresh/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.donkingliang.refresh; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() throws Exception { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /app/src/test/java/com/donkingliang/refreshlayout/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.donkingliang.refreshlayout; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() throws Exception { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | /captures 3 | 4 | # Built application files 5 | *.apk 6 | *.ap_ 7 | 8 | 9 | 10 | # Generated files 11 | bin/ 12 | gen/ 13 | 14 | # Gradle files 15 | .gradle/ 16 | /build 17 | /*/build/ 18 | 19 | # Local configuration file (sdk path, etc) 20 | local.properties 21 | 22 | # Proguard folder generated by Eclipse 23 | proguard/ 24 | 25 | # Log Files 26 | *.log 27 | 28 | # Eclipse project files 29 | .classpath 30 | .project 31 | .settings/ 32 | 33 | # Intellij project files 34 | *.iml 35 | *.ipr 36 | *.iws 37 | .idea/ 38 | 39 | # System files 40 | .DS_Store -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_web_view.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 11 | 12 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /app/src/main/res/layout/adapter_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 14 | 15 | 16 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | org.gradle.jvmargs=-Xmx1536m 13 | 14 | # When configured, Gradle will run in incubating parallel mode. 15 | # This option should only be used with decoupled projects. More details, visit 16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 17 | # org.gradle.parallel=true 18 | -------------------------------------------------------------------------------- /refresh/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | pullrefresh 3 | 4 | 下拉可以刷新 5 | 正在刷新… 6 | 释放立即刷新 7 | 刷新完成 8 | 刷新失败 9 | 上次更新 M-d HH:mm 10 | 11 | 上拉加载更多 12 | 释放立即加载 13 | 正在加载… 14 | 加载完成 15 | 加载失败 16 | 没有更多数据了 17 | 18 | -------------------------------------------------------------------------------- /refresh/src/androidTest/java/com/donkingliang/refresh/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.donkingliang.refresh; 2 | 3 | import android.content.Context; 4 | import android.support.test.InstrumentationRegistry; 5 | import android.support.test.runner.AndroidJUnit4; 6 | 7 | import org.junit.Test; 8 | import org.junit.runner.RunWith; 9 | 10 | import static org.junit.Assert.*; 11 | 12 | /** 13 | * Instrumentation test, which will execute on an Android device. 14 | * 15 | * @see Testing documentation 16 | */ 17 | @RunWith(AndroidJUnit4.class) 18 | public class ExampleInstrumentedTest { 19 | @Test 20 | public void useAppContext() throws Exception { 21 | // Context of the app under test. 22 | Context appContext = InstrumentationRegistry.getTargetContext(); 23 | 24 | assertEquals("com.donkingliang.refresh.test", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/src/androidTest/java/com/donkingliang/refreshlayout/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.donkingliang.refreshlayout; 2 | 3 | import android.content.Context; 4 | import android.support.test.InstrumentationRegistry; 5 | import android.support.test.runner.AndroidJUnit4; 6 | 7 | import org.junit.Test; 8 | import org.junit.runner.RunWith; 9 | 10 | import static org.junit.Assert.*; 11 | 12 | /** 13 | * Instrumentation test, which will execute on an Android device. 14 | * 15 | * @see Testing documentation 16 | */ 17 | @RunWith(AndroidJUnit4.class) 18 | public class ExampleInstrumentedTest { 19 | @Test 20 | public void useAppContext() throws Exception { 21 | // Context of the app under test. 22 | Context appContext = InstrumentationRegistry.getTargetContext(); 23 | 24 | assertEquals("com.donkingliang.refreshlayout", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /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 C:\Users\Administrator\AppData\Local\Android\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 | 19 | # Uncomment this to preserve the line number information for 20 | # debugging stack traces. 21 | #-keepattributes SourceFile,LineNumberTable 22 | 23 | # If you keep the line number information, uncomment this to 24 | # hide the original source file name. 25 | #-renamesourcefileattribute SourceFile 26 | -------------------------------------------------------------------------------- /refresh/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 C:\Users\Administrator\AppData\Local\Android\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 | 19 | # Uncomment this to preserve the line number information for 20 | # debugging stack traces. 21 | #-keepattributes SourceFile,LineNumberTable 22 | 23 | # If you keep the line number information, uncomment this to 24 | # hide the original source file name. 25 | #-renamesourcefileattribute SourceFile 26 | -------------------------------------------------------------------------------- /refresh/src/main/res/layout/footer_view_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 16 | 17 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 25 5 | buildToolsVersion "25.0.3" 6 | defaultConfig { 7 | applicationId "com.donkingliang.refreshlayout" 8 | minSdkVersion 19 9 | targetSdkVersion 25 10 | versionCode 1 11 | versionName "1.0" 12 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | compile fileTree(dir: 'libs', include: ['*.jar']) 24 | androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { 25 | exclude group: 'com.android.support', module: 'support-annotations' 26 | }) 27 | compile 'com.android.support:appcompat-v7:25.3.1' 28 | compile 'com.android.support:recyclerview-v7:25.3.1' 29 | compile 'com.android.support.constraint:constraint-layout:1.0.2' 30 | testCompile 'junit:junit:4.12' 31 | 32 | compile project(':refresh') 33 | } 34 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_list_view.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 11 | 12 | 17 | 18 | 22 | 23 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_recycler_view.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 11 | 12 | 17 | 18 | 22 | 23 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /app/src/main/java/com/donkingliang/refreshlayout/SPUtil.java: -------------------------------------------------------------------------------- 1 | package com.donkingliang.refreshlayout; 2 | 3 | import android.content.Context; 4 | import android.content.SharedPreferences; 5 | import android.preference.PreferenceManager; 6 | 7 | /** 8 | * Depiction: 用于储蓄列表的最后刷新时间 9 | * Author:lry 10 | * Date: 2018/8/17 11 | */ 12 | class SPUtil { 13 | 14 | private static volatile SharedPreferences mSharedPreferences; 15 | 16 | public static synchronized SharedPreferences initSharedPreferences(Context context) { 17 | if (mSharedPreferences == null) { 18 | mSharedPreferences = context.getSharedPreferences("refresh_time", Context.MODE_PRIVATE); 19 | } 20 | return mSharedPreferences; 21 | } 22 | 23 | /** 24 | * 对全局变量指定写入一个long值. 25 | * 26 | * @param key KEY 27 | * @param value 值 28 | */ 29 | public static void writeRefreshTime(final String key, final long value) { 30 | final SharedPreferences.Editor editor = mSharedPreferences.edit(); 31 | editor.putLong(key, value); 32 | editor.apply(); 33 | } 34 | 35 | public static Long getRefreshTime(final String key) { 36 | return mSharedPreferences.getLong(key, 0); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /refresh/src/main/res/drawable/progress_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 7 | 10 | 13 | 16 | 19 | 22 | 25 | 28 | 31 | 34 | 37 | 40 | -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 25 | 28 | 31 | 34 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 |