- 博客(15)
- 收藏
- 关注
原创 单例
public class RetrofitHelper { private static Retrofit retrofit; private static API api; private static Retrofit getRetrofit(){ if (retrofit==null){
2018-01-08 08:23:05 177 1
原创 mvp基类+retrofit封装 请求数据
//依赖compile 'com.android.support:recyclerview-v7:26.1.0'compile 'com.jakewharton:butterknife:8.8.1'annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'compile 'com.facebook.fresco
2017-12-19 19:43:50 314
原创 Retrofit+MVP登录注册+EventBus
//依赖compile 'com.squareup.retrofit2:retrofit:2.3.0'compile 'com.squareup.retrofit2:converter-gson:2.3.0'compile 'org.greenrobot:eventbus:3.1.1'//main_activity 登录LinearLayout xmlns:android="ht
2017-12-13 10:02:09 510
原创 rxjava 和retrofit 结合使用
compile 'io.reactivex.rxjava2:rxandroid:2.0.1'compile 'io.reactivex.rxjava2:rxjava:2.1.7'compile 'com.squareup.retrofit2:retrofit:2.3.0'compile 'com.google.code.gson:gson:2.8.2'compile 'com.squa
2017-12-04 20:46:03 290
原创 MVP+Retrofit+fresco+greendao+eventbus
compile 'com.squareup.retrofit2:retrofit:2.3.0'compile 'com.squareup.retrofit2:converter-gson:2.3.0'compile 'com.android.support:recyclerview-v7:26.1.0'compile 'com.jakewharton:butterknife:8.8.1'
2017-12-03 21:11:11 204
原创 Retrofit网络请求+Recyclerview展示数据+Fresco显示图片
//依赖 compile 'com.squareup.retrofit2:retrofit:2.3.0' compile 'com.squareup.retrofit2:converter-gson:2.3.0' compile 'com.android.support:recyclerview-v7:26.1.0' compile 'com.jakewhar
2017-12-01 21:04:27 627
原创 MVP登陆注册
//依赖compile 'com.squareup.okhttp3:okhttp:3.9.0' compile 'org.kie.modules:com-google-code-gson:6.5.0.Final' compile 'com.google.code.gson:gson:2.8.2'登录注册布局和工具//drawabl
2017-11-23 11:15:44 424
原创 okhttputils封装
//OkhttpUtils封装package test.j.com.mvpshopdemo.okhttp;import java.io.File;import java.util.Map;import java.util.concurrent.TimeUnit;import okhttp3.FormBody;import okhttp3.MediaType;import okhttp3.Multi
2017-11-22 18:31:59 420
原创 MVP二级购物车
//依赖compile 'com.squareup.okhttp3:okhttp:3.9.0'compile 'com.google.code.gson:gson:2.8.2'compile 'com.jakewharton:butterknife:8.8.1'annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.
2017-11-22 17:36:51 187
原创 购物车二级列表
1.先加权限uses-permission android:name="android.permission.INTERNET"/>uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>uses-permission android:name="android.permission.READ_EX
2017-11-18 11:11:36 293
原创 Recyclerview三种布局获取数据+Springview刷新
//依赖compile 'com.android.support:recyclerview-v7:25.0.0-alpha1' compile 'com.jakewharton:butterknife:8.8.1' annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1' compil
2017-11-18 10:52:03 515
原创 Android简单实现高德地图显示及定位
1、要实现高德地图的定位,首先要下载高德地图的SDK以及高德地图定位的SDK 下载地址:http://lbs.amap.com/api/android-sdk/download/ http://lbs.amap.com/api/android-location-sdk/download/ 然后注册账号后到控制台应用管理—–>添加应用—->添加key 获取到自己的key值 获取k
2017-11-15 14:35:24 11311 9
原创 自定义view刮刮乐
1,先继承TextView/** * Created by Administrator on 2017/2/25.* 刮刮乐 效果 */public class ScratchTextView extends TextView{private static final String TAG = "ScratchTextView";privat
2017-11-15 11:12:15 313 1
原创 MVP+OKHttp+Recyclerview+Springview下拉刷新上拉加载
//activity —main布局依赖compile 'com.android.support:recyclerview-v7:25.0.0-alpha1'//springview实现上下拉的功能compile 'com.liaoinstan.springview:library:1.3.0'compile 'com.google.code.gson:gson:2.8.
2017-11-15 10:25:40 1581
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人