├── app ├── .gitignore ├── src │ ├── main │ │ ├── assets │ │ │ ├── fake │ │ │ │ └── laoer.png │ │ │ └── beauties │ │ │ │ ├── 06b01.jpg │ │ │ │ ├── 06b02.jpg │ │ │ │ ├── 06b03.jpg │ │ │ │ ├── 06b04.jpg │ │ │ │ ├── 06b05.jpg │ │ │ │ ├── 06b06.jpg │ │ │ │ ├── 06b07.jpg │ │ │ │ └── 06b08.jpg │ │ ├── res │ │ │ ├── mipmap-xxxhdpi │ │ │ │ └── pic1.jpg │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── layout │ │ │ │ ├── activity_main.xml │ │ │ │ ├── card_item.xml │ │ │ │ ├── content_main.xml │ │ │ │ └── fragment_meizi.xml │ │ │ ├── values │ │ │ │ ├── dimens.xml │ │ │ │ ├── colors.xml │ │ │ │ ├── strings.xml │ │ │ │ └── styles.xml │ │ │ ├── values-v21 │ │ │ │ └── styles.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ └── menu │ │ │ │ └── menu_main.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── huxq17 │ │ │ │ └── example │ │ │ │ ├── base │ │ │ │ ├── BaseBean.java │ │ │ │ ├── BaseFragment.java │ │ │ │ ├── UltraPagerFragment.java │ │ │ │ ├── BaseActivity.java │ │ │ │ └── Base.java │ │ │ │ ├── utils │ │ │ │ └── Utils.java │ │ │ │ ├── constants │ │ │ │ └── Constants.java │ │ │ │ ├── presenter │ │ │ │ └── MeiziPresenter.java │ │ │ │ ├── http │ │ │ │ ├── response │ │ │ │ │ ├── ResponseType.java │ │ │ │ │ └── HttpResponse.java │ │ │ │ ├── request │ │ │ │ │ ├── HttpHeader.java │ │ │ │ │ ├── HttpMethod.java │ │ │ │ │ ├── CountingRequestBody.java │ │ │ │ │ ├── RequestParams.java │ │ │ │ │ └── HttpRequest.java │ │ │ │ ├── MediaTypeWrap.java │ │ │ │ ├── HttpBase.java │ │ │ │ └── body │ │ │ │ │ └── FileBody.java │ │ │ │ ├── bean │ │ │ │ ├── ContentBean.java │ │ │ │ └── MeiziBean.java │ │ │ │ ├── MainActivity.java │ │ │ │ ├── adapter │ │ │ │ └── MeiziAdapter.java │ │ │ │ └── fragment │ │ │ │ └── MeiziFragment.java │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── huxq17 │ │ │ └── example │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── huxq17 │ │ └── example │ │ └── ApplicationTest.java ├── proguard-rules.pro └── build.gradle ├── okhttp ├── .gitignore ├── libs │ └── okio.jar ├── src │ └── main │ │ ├── AndroidManifest.xml │ │ └── java │ │ └── okhttp3 │ │ ├── internal │ │ ├── Version.java │ │ ├── http │ │ │ ├── CacheRequest.java │ │ │ ├── RequestException.java │ │ │ ├── RealResponseBody.java │ │ │ ├── RequestLine.java │ │ │ ├── HttpMethod.java │ │ │ ├── RouteException.java │ │ │ ├── HeaderParser.java │ │ │ ├── HttpStream.java │ │ │ ├── RetryableSink.java │ │ │ ├── StatusLine.java │ │ │ ├── AuthenticatorAdapter.java │ │ │ └── HttpDate.java │ │ ├── FaultHidingSink.java │ │ ├── NamedRunnable.java │ │ ├── framed │ │ │ ├── Variant.java │ │ │ ├── HeadersMode.java │ │ │ ├── Header.java │ │ │ ├── Ping.java │ │ │ ├── ErrorCode.java │ │ │ ├── PushObserver.java │ │ │ ├── FrameWriter.java │ │ │ └── NameValueBlockReader.java │ │ ├── RouteDatabase.java │ │ ├── InternalCache.java │ │ ├── Internal.java │ │ ├── io │ │ │ └── FileSystem.java │ │ └── ConnectionSpecSelector.java │ │ ├── Interceptor.java │ │ ├── Credentials.java │ │ ├── TlsVersion.java │ │ ├── Challenge.java │ │ ├── Callback.java │ │ ├── Dns.java │ │ ├── Authenticator.java │ │ ├── Route.java │ │ ├── Protocol.java │ │ ├── FormBody.java │ │ ├── Connection.java │ │ ├── RequestBody.java │ │ ├── MediaType.java │ │ ├── Handshake.java │ │ └── ResponseBody.java └── build.gradle ├── library ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ └── values │ │ │ │ ├── strings.xml │ │ │ │ └── attrs.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── com │ │ │ └── huxq17 │ │ │ └── swipecardsview │ │ │ └── BaseCardAdapter.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── huxq17 │ │ └── swipecardsview │ │ └── ApplicationTest.java ├── proguard-rules.pro ├── build.gradle ├── gradle.properties └── gradle-jcenter-push.gradle ├── settings.gradle ├── gif ├── gif1.gif ├── gif2.gif └── gif3.gif ├── apk └── app_v1.3.1.apk ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore ├── gradle.properties ├── gradlew.bat └── gradlew /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /okhttp/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /library/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':library', ':okhttp' 2 | -------------------------------------------------------------------------------- /gif/gif1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huxq17/SwipeCardsView/HEAD/gif/gif1.gif -------------------------------------------------------------------------------- /gif/gif2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huxq17/SwipeCardsView/HEAD/gif/gif2.gif -------------------------------------------------------------------------------- /gif/gif3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huxq17/SwipeCardsView/HEAD/gif/gif3.gif -------------------------------------------------------------------------------- /apk/app_v1.3.1.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huxq17/SwipeCardsView/HEAD/apk/app_v1.3.1.apk -------------------------------------------------------------------------------- /okhttp/libs/okio.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huxq17/SwipeCardsView/HEAD/okhttp/libs/okio.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huxq17/SwipeCardsView/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/assets/fake/laoer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huxq17/SwipeCardsView/HEAD/app/src/main/assets/fake/laoer.png -------------------------------------------------------------------------------- /library/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | SwipeCardsView 3 | 4 | -------------------------------------------------------------------------------- /app/src/main/assets/beauties/06b01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huxq17/SwipeCardsView/HEAD/app/src/main/assets/beauties/06b01.jpg -------------------------------------------------------------------------------- /app/src/main/assets/beauties/06b02.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huxq17/SwipeCardsView/HEAD/app/src/main/assets/beauties/06b02.jpg -------------------------------------------------------------------------------- /app/src/main/assets/beauties/06b03.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huxq17/SwipeCardsView/HEAD/app/src/main/assets/beauties/06b03.jpg -------------------------------------------------------------------------------- /app/src/main/assets/beauties/06b04.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huxq17/SwipeCardsView/HEAD/app/src/main/assets/beauties/06b04.jpg -------------------------------------------------------------------------------- /app/src/main/assets/beauties/06b05.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huxq17/SwipeCardsView/HEAD/app/src/main/assets/beauties/06b05.jpg -------------------------------------------------------------------------------- /app/src/main/assets/beauties/06b06.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huxq17/SwipeCardsView/HEAD/app/src/main/assets/beauties/06b06.jpg -------------------------------------------------------------------------------- /app/src/main/assets/beauties/06b07.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huxq17/SwipeCardsView/HEAD/app/src/main/assets/beauties/06b07.jpg -------------------------------------------------------------------------------- /app/src/main/assets/beauties/06b08.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huxq17/SwipeCardsView/HEAD/app/src/main/assets/beauties/06b08.jpg -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/pic1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huxq17/SwipeCardsView/HEAD/app/src/main/res/mipmap-xxxhdpi/pic1.jpg -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huxq17/SwipeCardsView/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huxq17/SwipeCardsView/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huxq17/SwipeCardsView/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huxq17/SwipeCardsView/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /okhttp/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea 5 | /.idea/workspace.xml 6 | /.idea/libraries 7 | .DS_Store 8 | /build 9 | /captures 10 | -------------------------------------------------------------------------------- /library/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/java/com/huxq17/example/base/BaseBean.java: -------------------------------------------------------------------------------- 1 | package com.huxq17.example.base; 2 | 3 | /** 4 | * Created by huxq17 on 2016/3/9. 5 | */ 6 | public abstract class BaseBean { 7 | public abstract int getStatus(); 8 | public abstract int getPage(); 9 | } 10 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Mon Dec 28 10:00:20 PST 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.10-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /app/src/main/java/com/huxq17/example/utils/Utils.java: -------------------------------------------------------------------------------- 1 | package com.huxq17.example.utils; 2 | 3 | /** 4 | * Created by huxq17 on 2016/4/12. 5 | */ 6 | public class Utils { 7 | public static int url2groupid(String url) { 8 | return Integer.parseInt(url.split("/")[3]); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 16dp 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #E46AA3 4 | #E46AA3 5 | #FF4081 6 | #E46AA3 7 | 8 | -------------------------------------------------------------------------------- /okhttp/src/main/java/okhttp3/internal/Version.java: -------------------------------------------------------------------------------- 1 | package okhttp3.internal; 2 | 3 | /** 4 | * Created by huxq17 on 2015/12/17. 5 | */ 6 | public final class Version { 7 | public static String userAgent() { 8 | return "okhttp/${project.version}"; 9 | } 10 | 11 | private Version() { 12 | } 13 | } -------------------------------------------------------------------------------- /app/src/main/java/com/huxq17/example/constants/Constants.java: -------------------------------------------------------------------------------- 1 | package com.huxq17.example.constants; 2 | 3 | /** 4 | * Created by huxq17 on 2016/4/11. 5 | */ 6 | public class Constants { 7 | public static final String BaseUrl = "http://www.mzitu.com/"; 8 | public static String CoverUrl =BaseUrl+"page/"; 9 | } 10 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | SwipeCardsView 3 | Settings 4 | 向左边滑出 5 | 向右边滑出 6 | 重新开始 7 | 上一张 8 | 9 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /app/src/test/java/com/huxq17/example/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.huxq17.example; 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/androidTest/java/com/huxq17/example/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.huxq17.example; 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 | } -------------------------------------------------------------------------------- /library/src/androidTest/java/com/huxq17/swipecardsview/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.huxq17.swipecardsview; 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/main/java/com/huxq17/example/presenter/MeiziPresenter.java: -------------------------------------------------------------------------------- 1 | package com.huxq17.example.presenter; 2 | 3 | import com.huxq17.example.base.BasePresenter; 4 | import com.huxq17.example.bean.MeiziBean; 5 | import com.huxq17.example.fragment.MeiziFragment; 6 | 7 | /** 8 | * Created by huxq17 on 2016/4/11. 9 | */ 10 | public class MeiziPresenter extends BasePresenter { 11 | public MeiziPresenter(MeiziFragment fragment) { 12 | super(fragment); 13 | } 14 | 15 | @Override 16 | public int getCacheKey() { 17 | return 0; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /app/src/main/res/layout/card_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 17 | -------------------------------------------------------------------------------- /app/src/main/java/com/huxq17/example/http/response/ResponseType.java: -------------------------------------------------------------------------------- 1 | package com.huxq17.example.http.response; 2 | 3 | /** 4 | * 网络请求返回的类型 5 | * 6 | *

HttpRequest.Builder builder = new HttpRequest.Builder(); 7 | *

builder.url(url); 8 | *

addHeaders(builder, headers); 9 | *

//网络请求返回的默认类型就是string,如下载文件和加载图片需要用到InputStream,则设置为ResponseType.InputStream 10 | *

builder.setResponseType(ResponseType.InputStream); 11 | *

mHttpBase.get(builder.build(), listener, tag); 12 | */ 13 | public enum ResponseType { 14 | String("String"), InputStream("InputStream"); 15 | private final String type; 16 | 17 | ResponseType(String type) { 18 | this.type = type; 19 | } 20 | 21 | @Override 22 | public String toString() { 23 | return type; 24 | } 25 | } -------------------------------------------------------------------------------- /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 E:\BaiduYunDownload\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\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 E:\BaiduYunDownload\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\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 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 15 | 16 |