- 博客(13)
- 收藏
- 关注
原创 RXjava封装实现详情页面
//依赖 compile 'com.squareup.retrofit2:retrofit:2.0.0-beta4' compile 'com.squareup.retrofit2:converter-gson:2.0.0-beta4' compile 'com.squareup.okhttp3:okhttp:3.1.2' compile 'com.squareu
2017-12-10 20:59:37 338
原创 封装Retrofit
public interface ServerApi { @GET(UrlApi.URL) Call logBeanCall();}/////public class UrlApi { public static final String HOST_URL="http://gank.io/api/data/Android/"; public static
2017-12-03 20:05:46 139
原创 加入购物车
//modelpublic class AddCartModel { private Handler handler = new Handler(Looper.getMainLooper()); public void addCart(String uid, String pid, final OnNetListener onNetListener) {
2017-11-23 11:09:26 281
原创 二级购物车自定义demo
HttpUtils net包下的public class HttpUtils { private static volatile HttpUtils httpUtils; private final OkHttpClient client; private HttpUtils(){ client=new OkHttpClient.Builder(
2017-11-23 09:38:40 191
原创 登录注册布局和工具
//drawable下xmlleft_item_font_selector.xml;xml version="1.0" encoding="utf-8"?>selector xmlns:android="http://schemas.android.com/apk/res/android"> item android:color="@color/colorRed" and
2017-11-23 09:13:05 235
原创 登陆注册
net包HttpUtils类public class HttpUtils { private static volatile HttpUtils httpUtils; private final OkHttpClient client; private Context context; private HttpUtils(){
2017-11-23 08:19:22 517
原创 二级列表自定义加减号布局
//二级列表购物车加减自定义控件//主界面xml version="1.0" encoding="utf-8"?>LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmln
2017-11-22 19:09:20 356
原创 安卓1jShopDemo
xml version="1.0" encoding="utf-8"?>LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.and
2017-11-22 19:02:21 183
原创 一级购物车demo
//导入依赖compile 'com.squareup.okhttp3:okhttp:3.9.0'compile 'com.squareup.okhttp3:logging-interceptor:3.9.0'compile 'com.google.code.gson:gson:2.8.2'compile 'com.nostra13.universalimageloader:univer
2017-11-22 15:22:45 253
原创 SYyuekaoShopBJ
//布局//MainActivity布局xml version="1.0" encoding="utf-8"?>LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:
2017-11-22 14:50:19 137
原创 2级列表shopDemo布局
//这个写在drawble下面名字为shopcart_add_btnxml version="1.0" encoding="utf-8"?>shape xmlns:android="http://schemas.android.com/apk/res/android"> corners android:radius="200dp">corners> stroke android:col
2017-11-20 16:21:09 180
原创 zdy拦截器
public class MyInterceptor implements Interceptor { @Override public Response intercept(Chain chain) throws IOException { //获取原始的Request请求 Request original = chain.reques
2017-11-20 15:28:34 155
原创 安卓shopDemo
//导入依赖compile 'com.squareup.okhttp3:okhttp:3.9.0'compile 'com.squareup.okhttp3:logging-interceptor:3.9.0'compile 'com.google.code.gson:gson:2.8.2'compile 'com.nostra13.universalimageloader:univer
2017-11-19 18:11:22 220
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人