说明

网址:http://gank.io/

API接口:http://gank.io/api

根据API接口做的一个客户端代码,客户端不是我做的,是@gaolonglong做的。
项目github地址:https://github.com/gaolonglong/GankGirl

我学习了这个代码,然后在这里分享一下,对代码中的一些东西稍微改动了一下,然后分享出来,大家可以学习一下。

本来添加了一些界面,然后考虑接口不成熟,特别添加推荐的接口,无法做出准确的判断,所以就把这些去掉了。

原始项目说明:

gank.io第三方客户端,包含妹子图和技术干货等。RxJava+Retrofit结合做网络请求,Glide做网络和本地图片加载库。妹子图支持手势缩放、保存和分享等。并整合了Material Design,更加美观。(练手项目,大神轻喷。)

依赖:

    compile 'com.android.support:appcompat-v7:25.3.1'
    compile 'com.android.support:design:25.3.1'
    compile 'com.android.support:support-v4:25.3.1'
    compile 'com.android.support:cardview-v7:25.3.1'

    compile 'com.jude:easyrecyclerview:3.5.7'

    compile 'de.hdodenhof:circleimageview:2.0.0'

    compile 'com.github.bumptech.glide:glide:3.7.0'

    compile 'com.github.chrisbanes:PhotoView:1.2.6'

    compile 'com.wang.avi:library:1.0.5'
    compile 'com.nineoldandroids:library:2.4.0'

    compile 'io.reactivex:rxjava:1.1.5'
    compile 'io.reactivex:rxandroid:1.2.0'
    compile 'com.squareup.retrofit2:retrofit:2.0.2'
    compile 'com.squareup.retrofit2:converter-gson:2.0.2'
    compile 'com.squareup.retrofit2:adapter-rxjava:2.0.2'

    compile 'com.jakewharton:butterknife:8.5.1'
    annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1'

界面截图

这里写图片描述


这里写图片描述


这里写图片描述


这里写图片描述


这里写图片描述


项目下载

上面的几张截图是我在原始工程的基础上改动之后截的图。
这里给出我改动后的工程下载地址:点击下载

致谢

在此感谢干货集中营提供的平台,感谢gaolonglong分享的代码~
欢迎大家关注干货集中营!

Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐