- 博客(8)
- 收藏
- 关注
原创 仿网易云音乐盒界面
package com.example.month__moni01;import java.io.IOException;import java.text.SimpleDateFormat;import java.util.ArrayList;import java.util.List;import java.util.Timer;import java.util.TimerTask;import...
2018-06-29 19:03:42 414
原创 分类列表+购物车
所需要的依赖implementation 'com.android.support:recyclerview-v7:27.1.1' implementation 'com.squareup.okhttp3:okhttp:3.10.0' implementation 'com.google.code.gson:gson:2.2.4' compile 'com.facebook.fresco:fres...
2018-06-29 14:50:37 2007 1
原创 Retrofit
//简单常用方法//接口中 @GET Call<BeanInfo> getData(@Url String url);//使用方法MainActivitynew Retrofit.Builder() .baseUrl("http://api.shigeten.net/") .addConverterFactory(Gso...
2018-06-12 20:14:01 373
原创 OKUtils
public class OkHttp3Util_03 { /** * 懒汉 安全 加同步 * 1.私有的静态成员变量 只声明不创建 * 2.私有的构造方法 * 3.提供返回实例的静态方法 */ private static OkHttpClient okHttpClient = null; private OkHttp3Util_03()...
2018-06-08 19:04:18 1079
原创 EventBus回传值简单使用
//先导依赖compile 'org.greenrobot:eventbus:3.0.0' //一个消息的实体类也就是Bean类public class EventBusStickMessage { public String Message; public EventBusStickMessage(String message) { Message = mess...
2018-06-07 20:25:29 524
原创 EventBus粘性事件
//先导依赖compile 'org.greenrobot:eventbus:3.0.0' //一个消息的实体类也就是Bean类public class EventBusStickMessage { public String Message; public EventBusStickMessage(String message) { Message = mess...
2018-06-07 19:58:14 306
原创 fresco简单使用
1.Fresco的环境搭建(1)在项目的build.grade文件里添加依赖(注意:因为Fresco进行了包的拆分,用到哪个功能就添加对应的依赖,可以减少APP的体积)dependencies { //Fresco,无论使用哪个模块的功能,都必须要添加的基础依赖 compile 'com.facebook.fresco:fresco:0.14.1' //下面的依赖根据需求,用到哪个模块,就导入...
2018-06-06 15:05:40 360
原创 RecyclerView适配器多条目
package com.example.myapplication02;import android.content.Context;import android.support.v7.widget.RecyclerView;import android.view.LayoutInflater;import android.view.View;import android.view.ViewGro...
2018-06-06 09:36:30 188
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人