自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 OkHttp日志拦截器打印

public class LogInterceptor implements Interceptor { public static String TAG = "LogInterceptor"; @Override public Response intercept(Interceptor.Chain chain) throws IOException { ...

2018-12-21 08:07:02 450

原创 Retrofit头像上传

1.主页面布局 <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmln...

2018-12-20 19:26:42 489

原创 登录注册OkHttp+Mvp

1.登录的首页面 package com.bawie.shopmkk; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android....

2018-12-20 16:49:59 328

原创 Retrofit+Axjava+EventBus+Fresco购物车

1.首先 导入依赖 权限 (1) /*retrofit网络请求*/ implementation 'com.squareup.retrofit2:retrofit:2.1.0' implementation 'com.squareup.retrofit2:converter-gson:2.1.0' /*eventbus传值*/ implementation '...

2018-12-20 15:22:52 260

原创 第三方地图加定位小圆点

1.首先导入对应的jar包,jar包的具体位置在上一篇博客 2.在app的build.gradle的android下边,写入: sourceSets { main { jni.srcDirs=[] jniLibs.srcDirs = ['libs'] } } 3.在清单文件中写入: <meta-d...

2018-12-20 10:22:06 663

原创 第三方地图定位

1.首先到百度地图的开放平台注册一个自己的账号 http://lbsyun.baidu.com/index.php?title=首页 2.到控制台,创建一个应用 3.之后进行提交 没有获取SHA1的软件,这个大神的博客里边有 https://blog.csdn.net/lixiaoliang0723/article/details/85076631 4.下载jar包 (1)开发文档—>A...

2018-12-19 14:59:42 1215

原创 购物车单条目

1.自定义加减器 布局 布局代码 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="60dp" android:layout_heigh...

2018-12-15 10:35:14 194 1

原创 Retrofit网络请求工具类

public interface RetrofitService { @GET("article/list/0/json") //Call<RecyBean> getItem(); Observable<RecyBean> getMessage(); } private void initRecy() { Retrofit ret...

2018-12-10 08:25:24 141

原创 XRecyclerView多条目展示以及上拉刷新下拉加载

1.主页面布局Main <com.jcodecraeer.xrecyclerview.XRecyclerView android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/recyclerView"></com...

2018-12-01 11:02:18 449 2

空空如也

空空如也

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

TA关注的人

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