- 博客(30)
- 收藏
- 关注
原创 第三方登录、分享
清单文件<activity android:name="com.tencent.tauth.AuthActivity" android:launchMode="singleTask" android:noHistory="true" > <intent-filter> <action android:name="andr.
2018-06-10 20:54:30
339
原创 greendao和搜索功能
在 主build.gradle中repositories { google() jcenter() mavenCentral() // add repository}dependencies { classpath 'com.android.tools.build:gradle:3.0.0' classpath 'org.greenrobot:green...
2018-05-30 19:31:47
610
原创 视频 音频
视频 :videoViewHolder.video.setVideoPath(dataBean.getVideouri());MediaController mediaController = new MediaController(context);videoViewHolder.video.setMediaController(mediaController);mediaContro...
2018-05-27 19:22:40
162
原创 购物车
package com.example.administrator.erzhoumoni.shopcar;import com.example.administrator.erzhoumoni.base.BaseContract;import com.example.administrator.erzhoumoni.bean.GetCartsBean;import com.example....
2018-05-20 19:11:18
134
原创 Retrofit+rxjava+dagger+mvp框架
导依赖在主build.gradle里加apply from: "config.gradle"在app的build.gradle里apply plugin: 'com.android.application'android { compileSdkVersion rootProject.ext.android.compileSdkVersion defaultConfig { ...
2018-05-13 19:40:57
318
原创 MPV框架 登录 注册
导依赖config.gradleext { android = [ compileSdkVersion: 27, applicationId : "com.example.administrator.myapplication", minSdkVersion : 15, target...
2018-05-10 19:16:55
739
原创 购物车删除
String DELETECART_URL = "https://www.zhaoapi.cn/product/deleteCart";modelpackage com.example.a1512qjd.model.inter;import com.example.a1512qjd.net.OnNetListener;public interface DeleteCartModel { ...
2018-05-03 20:12:10
597
原创 上传头像
package com.example.jingdongdemo.fragment;import android.content.Intent;import android.graphics.Bitmap;import android.graphics.Color;import android.graphics.drawable.ColorDrawable;import android...
2018-05-03 20:06:30
97
原创 搜索功能
自定义viewpackage com.example.administrator.yizhoukao;import android.content.Context;import android.content.res.TypedArray;import android.graphics.Color;import android.support.annotation.Nullable;i...
2018-05-03 20:03:54
129
原创 登录 第三方登录 注册
package com.example.administrator.wderzhoukao.net;import android.os.Handler;import android.os.Looper;import java.io.IOException;import java.util.Map;import okhttp3.Call;import okhttp3.Callbac...
2018-05-03 19:56:10
715
原创 多条目
package com.example.administrator.wdsanzhoukao.adapter;import android.animation.ObjectAnimator;import android.content.Context;import android.support.v7.widget.RecyclerView;import android.view.Lay...
2018-05-03 19:31:29
90
原创 购物车
一、依赖implementation 'com.squareup.okhttp3:okhttp:3.10.0'implementation 'com.google.code.gson:gson:2.2.4'compile 'com.github.bumptech.glide:glide:3.7.0'compile 'com.jcodecraeer:xrecyclerview:1.3.2'二、...
2018-05-03 19:14:50
156
原创 recyclerview mvp 获取数据
封装OKhttppackage com.example.jingdongdemo.net;import android.os.Handler;import android.os.Looper;import java.io.IOException;import java.util.concurrent.TimeUnit;import okhttp3.Call;import okht...
2018-04-22 20:50:33
251
原创 依赖
compile 'com.hjm:BottomTabBar:1.1.1'compile 'com.youth.banner:banner:1.4.10'implementation 'com.squareup.okhttp3:okhttp:3.10.0'implementation 'com.google.code.gson:gson:2.2.4'compile 'com.github.b...
2018-04-22 20:41:34
151
原创 登录 MVP
一、首先net包1、OkHttpUtils 类package com.example.mvpdemo.net;import java.io.IOException;import java.util.Map;import okhttp3.Call;import okhttp3.Callback;import okhttp3.FormBody;import okhttp3.OkHttp...
2018-04-22 20:40:02
118
原创 流式布局
一、自定义MyViewGrouppublic class MyViewGroup extends ViewGroup { //存储所有子View private List<List<View>> mAllChildViews = new ArrayList<>(); //每一行的高度 private List<Integer...
2018-04-15 20:36:53
119
原创 模拟搜索功能
public class MyView extends LinearLayout { private Dao dao; private List<String> select; private MyViewGroup mvg; private ListView lv; private ArrayAdapter<String>...
2018-04-15 20:33:36
216
原创 组合控件 购物车数量加减
一、创建attrs <resources> <declare-styleable name="AddDerViewAttr" > <attr name="left_text" format="string"></attr> <attr name="rigth_text&quo
2018-04-15 20:27:38
260
原创 混合练习
<body ng-app="myapp" ng-controller="mycon"> <input type="text" placeholder="按商品名称搜索" ng-model="sname"/> <input type="button" value="添加商品" ng-click=&q
2018-04-07 11:42:19
144
原创 ViewPager无限轮播图
一、布局<FrameLayout android:layout_width="match_parent" android:layout_height="wrap_content"> <android.support.v4.view.ViewPager android:layout_width="match_parent"...
2018-03-29 19:45:26
108
原创 HorizontalScrollView横向滑动菜单
一、布局<HorizontalScrollView android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/hsv"> <LinearLayout android:layout_width="match_pa...
2018-03-29 19:45:09
203
原创 多条目
public class MyAdapter extends BaseAdapter { private final DisplayImageOptions options; private List<RequestData.NewslistBean> newslist; private Context context; private int one=...
2018-03-29 19:44:38
80
原创 获取网络数据
private Handler handler = new Handler(){ @Override public void handleMessage(Message msg) { List<RequestData.NewslistBean> newslist= (List<RequestData.NewslistBean>) msg.ob...
2018-03-29 19:44:06
198
原创 封装网络获取数据
一、自定义MyTaskpublic class MyTask extends AsyncTask<String,Void,String> { private IcallBack icallBack; public MyTask(IcallBack icallBack) { this.icallBack = icallBack; } ...
2018-03-29 19:43:51
134
原创 TabLayout横向滑动菜单
首先添加依赖implementation 'com.android.support:design:27.1.0'<android.support.design.widget.TabLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+i...
2018-03-29 19:43:37
557
1
原创 PullToRefreshListView上下拉刷新
首先添加依赖compile 'com.github.userswlwork:pull-to-refresh:1.0.0'public class Fragment01 extends Fragment { private PullToRefreshListView plv; private List<RequestData.NewslistBean> data = n...
2018-03-29 19:43:20
109
原创 Universal-Image-Loader加载图片
public class MyApp extends Application { @Override public void onCreate() { super.onCreate(); File cachefile = new File(Environment.getExternalStorageDirectory().getPath()+"/id...
2018-03-29 19:42:58
110
原创 添加 删除 排序
<body ng-app="myapp" ng-controller="mycon"> <button ng-click="isShow=!isShow">新增订单</button> <button ng-click="delmore()">批量删除</button> <
2018-03-29 19:42:17
274
原创 总价 删除
<body ng-app="myapp" ng-controller="mycon"> <div class="d1"> <h1>我的购物车详情</h1> <input type="text" placeholder="根据名称查询" id="sname"
2018-03-29 19:41:44
162
原创 判断网络
public class NetUtils { public static Boolean isConnt(Context context){ Boolean result=true; ConnectivityManager manager = (ConnectivityManager) context.getSystemService(Context.C...
2018-03-05 16:36:02
97
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人