自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 收藏
  • 关注

原创 OKRetrofite的使用

package com.example.headportrait.net;import android.util.Log;import java.util.concurrent.TimeUnit;import okhttp3.OkHttpClient;import okhttp3.logging.HttpLoggingInterceptor;import retrofit2.Retrofit;im...

2018-05-30 20:46:03 122

原创 登陆注册P层的逻辑,

package com.example.jingdong.sigerin.presenter;import android.text.TextUtils;import com.example.jingdong.net.OnNetListner;import com.example.jingdong.register.RegisBean;import com.example.jingdo...

2018-05-02 15:30:35 140

原创 MVP购物车页面,网络封装在前面的文章里

//所用的依赖compile 'com.hjm:BottomTabBar:1.1.1'compile 'com.facebook.fresco:fresco:0.11.0'compile 'com.jakewharton:butterknife:8.8.1'annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'com...

2018-05-02 15:28:48 170

原创 MVP封装网络框架retrofite+Rxjava封装,

首先是他用到的框架compile 'com.github.bumptech.glide:glide:3.7.0'compile 'com.jakewharton:butterknife:8.8.1'annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'compile 'com.squareup.retrofit2:con...

2018-05-02 15:02:11 177

原创 自定义view画圆

新建一个类BallView 继承viewpublic class BallView extends View { private int typedArrayInteger; private float cx=100; private float cy=100; private float aa; private float aFloa

2017-11-30 15:16:10 168

原创 post请求拉一个类

MyView类public class MyView extends LinearLayout {    private ImageView iv_add;    private ImageView iv_del;    private TextView tv_num;    public MyView(Context context) {   

2017-11-23 10:28:48 258

原创 post请求带公共参数

api接口public interface Api {    public static final String ORDER = "https://www.zhaoapi.cn/product/getOrders";    public static final String CANCLE_ORDER = "https://www.zhaoapi.cn/product/updat

2017-11-23 10:04:52 1421

原创 post请求添加公共参数

Request original = chain.request();        FormBody formBody = (FormBody) original.body();        String name = formBody.name(0);        String value = formBody.value(0);        FormBo

2017-11-23 09:11:17 994

原创 ImageLoader的简单用法

public class MyApplication  extends Application{    @Override    public void onCreate() {            super.onCreate();                ImageLoaderConfiguration configuration = new ImageLo

2017-11-23 08:23:53 149

原创 一级列表MVP封装

先写网络请求方面net包下//////////////////////////////////HttpUtils网络请求public class HttpUtils {    private static volatile HttpUtils httpUtils;    private final OkHttpClient client;    private Http

2017-11-22 19:30:57 199

原创 购物车二级列表MVP封装

net抱下/////////////////HttpUtils类public class HttpUtils {    private static volatile HttpUtils httpUtils;    private final OkHttpClient client;    private HttpUtils() {        HttpLog

2017-11-22 19:04:31 254

空空如也

空空如也

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

TA关注的人

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