自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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 164 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 302

原创 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 490

原创 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 278

原创 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 192

原创 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 597

原创 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 396

原创 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 405

原创 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 175

原创 购物车二级列表

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 265

原创 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 494

原创 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 11151 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 251 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 1563

原创 自定义view,进度圆

自定义

2017-11-05 19:49:36 132

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除