自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 Glide加载圆形图片

RequestOptions requestOptions = RequestOptions.circleCropTransform(); Glide.with(this).load(url).apply(requestOptions).into(imageView);

2018-06-09 10:15:24 203

原创 上传头像

1.NetApiService//上传头像 @Multipart @POST("file/upload") Observable<BaseBean> uploadHeader(@Part("uid") RequestBody uid, @Part MultipartBody.Part file);2.NetApi//上传头像 public Observa...

2018-05-30 16:18:41 391

原创 三级缓存工具类

1.ImageCacheUtilpackage animtest.com.example.e531.piccache_sanji_demo;import android.content.Context;import android.content.pm.PackageInfo;import android.content.pm.PackageManager;import android....

2018-05-29 07:54:06 313

原创 自定义view音乐播放

1.MyViewpackage com.example.zhoukao3;import android.content.Context;import android.support.annotation.Nullable;import android.util.AttributeSet;import android.view.LayoutInflater;import android....

2018-05-27 20:21:16 436

原创 OKhttp拦截器完善上传图片

package com.example.jingdong.net;import java.io.IOException;import okhttp3.FormBody;import okhttp3.HttpUrl;import okhttp3.Interceptor;import okhttp3.Request;import okhttp3.RequestBody;import ...

2018-05-23 11:25:16 334 1

原创 电商项目购物车页面新框架

1.ShopCarContractpackage com.example.jingdong.ui.shopcar.contract;import com.example.jingdong.bean.BaseBean;import com.example.jingdong.bean.SellerBean;import com.example.jingdong.bean.ShopCarBean...

2018-05-20 11:35:52 730

原创 电商项目分类页面新框架

1.ClassifyContractpackage com.example.jingdong.ui.classify.contract;import com.example.jingdong.bean.CatagoryBean;import com.example.jingdong.bean.ChildCataBean;import com.example.jingdong.ui.base...

2018-05-20 11:11:49 775 1

原创 最简单的recycleview适配器

1.recycleview适配器package com.example.day08_test.ui.adapter;import android.content.Context;import android.support.annotation.NonNull;import android.support.v7.widget.RecyclerView;import android.vie...

2018-05-18 09:02:17 478

原创 xrecycleview下拉刷新上拉加载更多和BaseFragment

1.BaseFragmentpackage com.example.jingdong.ui.base;import android.os.Bundle;import android.support.annotation.NonNull;import android.support.annotation.Nullable;import android.support.v4.app.Frag...

2018-05-15 21:31:04 280

原创 retrofit的使用

1.上传文件的bean类package com.example.retrofitdemo.bean;/** * Created by Dash on 2018/2/22. */public class UpLoadPicBean { /** * msg : 文件上传成功 * code : 0 */ private String msg;...

2018-05-14 13:59:19 145

原创 GreenDao数据库简单使用

1.主build.gradle// Top-level build file where you can add configuration options common to all sub-projects/modules.buildscript { repositories { google() jcenter() mav...

2018-05-13 15:28:26 230

原创 MVP+Rxjava+Retrofit+Dagger2+泛型基本练习

1.IBasepackage com.example.a1512qmvp.inter;public interface IBase { int getContentLayout(); void inject();}2.BaseContractpackage com.example.a1512qmvp.ui.base;public interface BaseContr...

2018-05-12 17:02:08 641

原创 电商项目购物车页面

1.查询购物车的p层package com.example.jingdong.presenter;import com.example.jingdong.bean.SellerBean;import com.example.jingdong.bean.ShopCarBean;import com.example.jingdong.model.GetShopCarModelImp;im

2018-05-01 13:20:36 874

原创 电商项目分类页面

1.fragment页面package com.example.jingdong.ui.fragment;import android.os.Bundle;import android.support.annotation.NonNull;import android.support.annotation.Nullable;import android.support.v4.app.

2018-05-01 12:52:35 633

原创 最新的OkhttpUtils改进版

package com.bwie.cuihaokai.net;import android.os.Handler;import android.os.Looper;import java.io.IOException;import java.util.Map;import java.util.concurrent.TimeUnit;import okhttp3.Call;imp

2018-04-27 20:01:08 502

原创 ExpandableListView的适配器实现分类页面

package com.example.jingdong.ui.adapter;import android.content.Context;import android.support.v7.widget.GridLayoutManager;import android.support.v7.widget.RecyclerView;import android.view.LayoutI

2018-04-27 19:13:40 424

原创 第三方分享登录主要代码

package com.example.a1512qumengdemo;import android.content.Intent;import android.os.Bundle;import android.view.View;import android.widget.Button;import android.widget.TextView;import android.wi

2018-04-27 08:31:27 432

原创 Android属性动画

1.第一页package com.example.propertyanimdemo;import android.animation.Animator;import android.animation.ArgbEvaluator;import android.animation.ValueAnimator;import android.os.Bundle;import androi

2018-04-25 16:10:23 193

原创 zxing的使用

1.MyApp中初始化package com.example.zxingdemo;import android.app.Application;import android.util.Log;import com.dash.zxinglibrary.activity.ZXingLibrary;public class MyApp extends Application {

2018-04-24 18:45:16 183

原创 okhttp拦截器Interceptor

package com.example.interceptordemo;import java.io.IOException;import okhttp3.FormBody;import okhttp3.HttpUrl;import okhttp3.Interceptor;import okhttp3.Request;import okhttp3.Response;//连接器使

2018-04-23 11:48:12 170

原创 最新的OkhttpUtils

package com.example.zhoukao2.net;import android.os.Handler;import android.os.Looper;import java.io.IOException;import java.util.Map;import java.util.concurrent.TimeUnit;import okhttp3.Call;i

2018-04-23 11:30:37 161

原创 okhttputils_登录post

package com.example.mvpdemo.net;import android.os.Handler;import android.os.Looper;import java.io.IOException;import java.util.Map;import okhttp3.Call;import okhttp3.Callback;impor

2018-04-20 08:53:07 707

原创 RecycleView的适配器

package com.example.recyclerview.ui.adapter;import android.content.Context;import android.support.annotation.NonNull;import android.support.v7.widget.RecyclerView;import android.view.LayoutI

2018-04-19 18:17:49 167

原创 OkhttpUtils

package com.example.okhttpdemo.net;import android.util.Log;import java.io.File;import java.io.IOException;import java.util.Map;import okhttp3.Call;import okhttp3.Callback;import okhttp3.Form

2018-04-16 19:57:34 228

原创 自定义标题栏接口回调实现点击事件

1.TitleView类package com.example.rikaoti;import android.content.Context;import android.support.annotation.Nullable;import android.util.AttributeSet;import android.view.LayoutInflater;import andro...

2018-04-13 19:01:33 302

原创 购物车加减按钮——自定义view实现

1.自定义类import android.content.Context;import android.support.annotation.Nullable;import android.util.AttributeSet;import android.view.View;import android.widget.EditText;import android.widget.Lin...

2018-04-10 19:23:38 946

原创 获取网络数据增删

label{ display: block; } span{ color: red; } angular.module("gaoynapp", []) .controller("con", function($scope, $http) { $scope.depars=[{id:1,name:'研发部'},{

2018-01-18 09:54:38 140

原创 购物车添加验证修改回传值

var app = angular.module("myApp", []); app.controller("myCtrl", function($scope) { $scope.products = [{ "id": 80, "name": "iPhone", "price": 5400, state: false }, {

2018-01-15 21:01:18 147

原创 ionic导航简单应用

angular.module("gaoyn", ["ionic"]) .controller("democ", function($scope) { }) .config(function($stateProvider,$urlRouterProvider){ $stateProvider .state("index",{ url:"/",

2018-01-15 14:25:13 359

原创 ionic侧栏

angular.module("gaoyn", ["ionic"]) .controller("democ", function($scope, $ionicSideMenuDelegate) { $scope.toggleLeft = function() { $ionicSideMenuDelegate.toggleLeft(); };

2018-01-15 10:12:35 153

原创 angularJS增删改查过滤排序

table tr:nth-child(even) { background: #eee; } var myapp = angular.module("modu", []); myapp.controller("con", function($scope) { $scope.stus = [{ id: 1, ck: f

2018-01-15 09:31:40 111

原创 ionic tab页面使用

var mapp=angular.module("modu",["ionic"]); mapp.controller("con",function($scope){ $scope.items=[1,2,3]; $scope.doRefresh = function() { $scope.items.push($scope.items.length + 1);

2018-01-12 19:15:20 1126

原创 ionic简单应用加列表

var myapp=angular.module("modu",["ionic"]); myapp.controller("con",function($scope){ $scope.items=[1,2,3]; $scope.dorefresh=function(){ $scope.items.push($scope.items.length+1); $

2018-01-12 15:01:49 277

原创 发货增删改过滤综合

#container input{ display: block; } 1 创建数据 2.视图展示 --> angular.module("gaoyn", []) .controller("democ", function($scope) { //控制添加区域是否隐藏 $scope.goods = []

2018-01-12 13:47:43 183

原创 路由简单应用

var app=angular.module("modu",["ngRoute"]); app.config(["$routeProvider",function($routeProvider){ $routeProvider.when("/home",{ template:"这是首页" }) .when("/computer",{ templat

2018-01-11 20:20:40 302

原创 angular 根据checked进行删除过滤增删

var app=angular.module("gaoyn",[]);            app.controller("democ",function($scope){                $scope.px='level';                $scope.sj=true;                $scope.stus = [{      

2018-01-09 20:37:38 155

原创 angular添加和删除

table tr:nth-child(even){ background: #eee;}            tr button{ width: 30px;}                                                            var sapp=angular.module("myapp",[]);      

2018-01-09 10:02:15 637

原创 正则表达式表单验证

body{width:400px;margin: 0 auto;}            form input{margin: 10px 0px;}            span{color: red;}                                                function login () {              

2018-01-07 19:38:21 188

原创 表单验证table表格添加数据

function chan(){                $("#cityz").siblings().remove();                                var shi=[["西二旗","海淀区"],["承德市","邯郸市"]];                var sheng=$("#sheng").val();            

2018-01-07 16:57:31 2056

原创 网络请求工具类MyNetTask

public class MyTask extends AsyncTask {    //申请一个接口类对象    private  Icallbacks icallbacks;    //将无参构造设置成私有的,使之在外部不能够调用    private MyTask(){}    //定义有参构造方法    public MyTask(Icallbacks

2017-12-21 09:18:59 142

空空如也

空空如也

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

TA关注的人

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