- 博客(28)
- 收藏
- 关注
原创 retorfit+RxJava+OKhttp+MVP
CustomJiaJian import android.content.Context;import android.support.annotation.Nullable;import android.util.AttributeSet;import android.view.View;import android.widget.Button;import androi
2017-12-21 11:31:34 578
原创 动画:平移旋转布赛尔曲线动画
Macitvity类package com.bwie.lenovo.propertyanimator;import android.animation.ObjectAnimator;import android.animation.TypeEvaluator;import android.animation.ValueAnimator;import android.gra
2017-12-15 10:03:18 416
转载 QQ第三方登录
现在的第三方登录很普遍如QQ,微博,微信,今天我们就来实现如何接入QQ登录到我们的项目中 要想使用QQ登录我们需要到腾讯开放平台注册账号获取开发者资格地址:http://open.qq.com/ 注册完成后点击我们右上角的管理中心 然后选择Android平台就会获取APPID和APPKEY创建完成后我们需要到http://wiki.open.qq.com/wiki/mob
2017-12-14 14:17:16 312
原创 retrofit+koliten+lambda+glide+recyclerview
activity_mainxml 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="h
2017-12-14 14:12:53 268
原创 MVP+EventBus+refits+recyclerview+frsco+粘性
ApIapply plugin: 'com.android.application'android { compileSdkVersion 24 buildToolsVersion "24.0.0" defaultConfig { applicationId "com.bwie.lenovo.xmer" minSdkVersio
2017-12-01 21:28:36 530
原创 EventBus
//添加依赖compile 'org.greenrobot:eventbus:3.1.1'///在第一个界面中首先注册界面,第二个界面发布消息,在第一个界面接收值//跳转界面findViewById(R.id.butnEven).setOnClickListener(new View.OnClickListener() { @Override pub
2017-12-01 21:08:28 144
原创 购物车+自定义拦截器
activity_mainxml version="1.0" encoding="utf-8"?>LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_widt
2017-11-23 13:10:54 375
原创 自定义拦截器
public class LoggingInterceptor implements Interceptor { @Override public Response intercept(Chain chain) throws IOException { //首先取到Request Request request=chain.request();
2017-11-22 19:32:03 197
原创 瀑布流和一级购物车
SecondActivityxml version="1.0" encoding="utf-8"?>LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_wid
2017-11-19 18:47:47 218
原创 自定义view
//(1)设置画笔的sizePaint paint1 = new Paint();paint1.setTextSize(10);//(2)设置画笔的颜色paint1.setColor(Color.BLUE);//(3)drawRect 就是使用画笔绘制一个矩形 前面两个参数代表起始坐标, 也就是左上角 后面两个参数可以标识你想画的长度和宽度 也可以理解为右下角的坐标点。Rect rec
2017-11-06 07:44:29 132
原创 扫描二维码
先在androidstudio上导入libzing的Module,然后再app上把那个libzing添加上去,这样我们的app就关联了那个libzing库了然后我们就只在app这个工程下写代码就行了。activity_main.xml布局如下xml version="1.0" encoding="utf-8"?>LinearLayout xmlns:and
2017-11-06 07:43:31 155
原创 二维码
public class MainActivity extends AppCompatActivity { private ImageView iv; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);
2017-11-03 19:36:13 200
原创 圆2
public class CirlcleProgress extends View { public CirlcleProgress(Context context) { super(context); } Paint mPaint; public CirlcleProgress(Context context, @Nullable Attrib
2017-11-02 09:19:52 163
原创 圆形进度条
public class CustomProgrssView extends View { private Paint paint; private boolean running=true; private int progress=0; public CustomProgrssView(Context context) { super(cont
2017-11-02 09:16:28 165
原创 实现跟随手指移动的小球
public class CustomCircleView extends View { private Paint mPaint; private int cx = 200; private int cy = 200; public CustomCircleView(Context context) { super(context);
2017-11-02 08:40:38 506
原创 购物车发货
var app = angular.module("myApp", ['ngRoute']);//配置路由app.config(["$routeProvider", function($routeProvider) {$routeProvider.when("/", {}).when("/addOrder", {controller: "addOrderCtrl",te
2017-10-25 20:29:58 226
原创 增删改查
var app=angular.module("myApp",['ngRoute']);app.config(["$routeProvider",function($routeProvider){$routeProvider.when("/addShop",{controller:"addShopCtrl",templateUrl:"addShop.html"}).when
2017-10-25 09:31:31 161
原创 我的购物车
var app = angular.module("myApp", []);app.controller("myCtrl", function($scope) {$scope.shop = [{"id": "1","name": "qq","price": "12.90","number": "2","totalprice": "25.80"}, {"id":
2017-10-24 16:24:55 296
原创 查询+下拉菜单排序+增加+敏感词过滤+判断姓名是否存在
/*奇数*/.even{background-color: lavender;}/*偶数*/.odd{background-color: aliceblue;}.first{background-color: darkgrey;}$(function(){$("tbody tr:even").addClass("even");
2017-10-23 16:03:29 240
原创 模糊查询+删除+修改+添加习题
综合练习.addUser{width: 100px;height: 40px;font-size: 18px;background-color: #11C1F3;}var app = angular.module("myApp",["ngRoute"]);//使用config配置路由规则app.config(["$routeProvider",funct
2017-10-22 19:30:37 714
原创 路由习题
.leftSide{width: 20%;display: inline-block;background-color: red;height: 600px;float: left}.rightSide{width: 80%;display: inline-block;background-color:#b2d235;height: 600px;fl
2017-10-21 09:54:48 424
原创 ionic多选框redio
var app = angular.module("myApp",[]);app.controller("myCtrl",function($scope){$scope.data = [{key:"1",value:"这是第一项"},{key:"2",value:"这是第二项"},{key:"3",value:"这是第三项"},{key:"4",
2017-10-19 19:59:47 218
原创 侧滑菜单
侧滑菜单(runoob.com) angular.module('starter', ['ionic']) .run(function($ionicPlatform) { $ionicPlatform.ready(function() { // Hide the accessory bar
2017-10-19 10:24:48 188
原创 ionic单选框redio
var app = angular.module("myApp",[]);app.controller("myCtrl",function($scope){$scope.radios = [{keys:"A",value:"A选项"},{keys:"B",value:"B选项"},{keys:"C",value:"C选项"},{keys:"D",
2017-10-18 19:23:30 245
原创 猜数游戏
xmlns="http://www.w3.org/1999/xhtml"> http-equiv="Content-Type" content="text/html; charset=utf-8" /> day10 type="text/css"> div{ background-colo
2017-10-14 10:04:52 162
原创 验证
xmlns="http://www.w3.org/1999/xhtml"> http-equiv="Content-Type" content="text/html; charset=utf-8" /> 周考2 type="text/javascript" src="../../jquery-2.1.0.js">
2017-10-14 10:03:22 148
转载 学生管理系统
var app=angular.module("myApp",["ngRoute"]); var user=[ { "id":1, "name":"小明", "pwd":111,
2017-10-14 10:00:56 236
原创 商品列表
charset="utf-8" /> type="text/javascript" src="js/jquery-2.1.0.min.js"> type="text/javascript" src="js/angular.js"> type="text/javascript"> var app=a
2017-10-14 09:53:46 313
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人