- 博客(31)
- 收藏
- 关注
原创 一篇网络购物车
首先我们将依赖写入项目的buildercompile 'com.squareup.okhttp3:okhttp:3.9.0'compile 'com.google.code.gson:gson:2.4'compile 'com.github.bumptech.glide:glide:3.7.0'compile 'com.squareup.okhttp3:logging-interce
2017-12-21 08:52:42
182
原创 今天写自定一轮播图
首先我们加依赖compile 'com.liaoinstan.springview:library:1.2.6'compile 'com.github.bumptech.glide:glide:3.7.0'compile 'com.squareup.okhttp3:okhttp:3.9.0'compile 'com.google.code.gson:gson:2.8.2'comp
2017-12-04 08:18:30
412
原创 自定义view头
public class TitleBarView extends LinearLayout { private TextView tvSubmit; public TitleBarView(Context context) { this(context, null); } public TitleBarView(Context context,
2017-12-01 08:29:02
188
原创 recyclerview显示图片
这是我们的model类import gouwuche.bwei.com.yue.MultiBean;import gouwuche.bwei.com.yue.okhttp.AbstractUiCallBack;import gouwuche.bwei.com.yue.okhttp.OkhttpUtils;/** * Created by Adminjs on 2017/11/10
2017-11-23 13:12:03
2657
原创 mvp购物车的实现 网络请求图片实现跳转
首先我们先将OKhttp封装public class OkhttpUtils { private static OkhttpUtils okhttpUtils = null ; private OkhttpUtils(){ } public static OkhttpUtils getInstance(){ if(okhtt
2017-11-23 11:38:35
550
原创 依赖
依赖//OKhttp的依赖 compile 'com.squareup.okhttp3:okhttp:3.9.0' compile 'com.squareup.okio:okio:1.5.0' compile 'com.squareup.okhttp3:okhttp:3.2.0' compile 'com.squareup.okhttp3:logg
2017-11-22 14:33:05
162
原创 recyclerview 显示图片 glide加载图片 实现点击跳转 上拉刷新下拉加载
首先我们要先将依赖导入工程compile 'com.android.support:mediarouter-v7:25.0.0'compile 'com.android.support:appcompat-v7:25.0.0'compile 'com.android.support:recyclerview-v7:25.0.0'//recyclerxview 的依赖
2017-11-09 19:44:24
919
原创 自定义view 动态圆形有百分比
public class CustomProgrssView extends View{ //定义画笔 private Paint paint; private int progress = 0; private boolean runing = true ; public CustomProgrssView(Context context) {
2017-11-04 08:16:46
330
原创 二维码扫描
<Button android:layout_width="match_parent" android:layout_height="wrap_content" android:onClick="scan" android:text="扫描二维码" /> <TextView android:id="@+id/
2017-11-04 08:13:06
201
转载 自定view
果吧从上面可以看出,我们可以自定义圆环的颜色,圆环进度的颜色,是否显示进度的百分比,进度百分比的颜色,以及进度是实心还是空心等等,这样子是不是很多元化很方便呢?接下来我们就来教大家怎么来定义 1.在values下面新建一个attrs.xml,现在里面定义我们的属性,不同的属性对应不同的format,属性对应的format可以参考http://blog.csdn.ne
2017-10-09 13:39:40
196
转载 自定义view实现圆形加载
[java] view plain copy print?import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.LinearGradient; import a
2017-10-09 13:37:03
281
转载 自定义view
我的简书同步发布:自定义View,有这一篇就够了为了扫除学习中的盲点,尽可能多的覆盖Android知识的边边角角,决定对自定义View做一个稍微全面一点的使用方法总结,在内容上面并没有什么独特的地方,其他大神们的博客上面基本上都有讲这方面的内容,如果你对自定义View很熟了,那么就不用往下看啦~。如果对自定义View不是很熟,或者说很多内容忘记了想复习一下,更或者说是从来没用过,欢迎跟
2017-10-09 13:29:05
239
转载 自定义view 生成随机数
转载请标明出处:http://blog.youkuaiyun.com/lmj623565791/article/details/242529011、自定义View的属性2、在View的构造方法中获得我们自定义的属性[ 3、重写onMesure ]4、重写onDraw我把3用[]标出了,所以说3不一定是必须的,当然了大部分情况下还是需要重写的。1、
2017-10-09 13:26:48
319
转载 二维码
package day.com.day06_zxing;import android.Manifest;import android.content.Intent;import android.content.pm.PackageManager;import android.os.Bundle;import android.support.v4.app.Activity
2017-10-09 13:22:03
249
转载 购物车
Title var myapp=angular.module("myapp",[]); myapp.controller("myCtrl",function ($scope) { $scope.goods=[{ name:'笔',num:1,price:101
2017-09-22 08:09:10
189
转载 添加删除
html>html lang="en">head> meta charset="UTF-8"> title>Titletitle> style> *{ margin: 0; padding: 0; } ul{ width: 400px;
2017-09-22 08:05:27
193
转载 service sort 添加日程 验证
html>html lang="en">head> meta charset="UTF-8"> title>Titletitle> script src="angular.min.js">script> script> var myapp=angular.module("myapp",[]); myapp.service("User
2017-09-22 08:01:45
245
转载 http 空格添加
html>html lang="en">head> meta charset="UTF-8"> title>Titletitle> script src="angular.min.js">script> script> var myapp=angular.module("myapp",[]); myapp.controller("m
2017-09-22 07:59:46
433
转载 添加 替换 猜数 工厂
html>html lang="en">head> meta charset="UTF-8"> title>Titletitle> style> *{ margin: 0; padding: 0; } div input{ margin-left: 4
2017-09-22 07:57:11
246
转载 店铺
html>html lang="en">head> meta charset="UTF-8"> title>Titletitle> style> *{ margin: 0; padding: 0; margin-left: 10px; } li{
2017-09-22 07:56:07
219
转载 bianli chaxun 旧密码新密码
html>html lang="en">head> meta charset="UTF-8"> title>Titletitle> script src="jquery-3.2.1.min.js">script> style> .tab{ width: 400px; height: 300px;
2017-09-22 07:53:21
901
转载 显示全部
Title li{ list-style: none; float: left; margin: 10px 20px; } ul{ overflow: hidden; } .sub{
2017-09-21 13:36:27
297
转载 点哪选那
Title $(function(){ $("button").click(function(){ var a=$(this).index(); console.log(a); $("ul li").hide().eq(a-1).
2017-09-21 13:34:39
177
转载 选择
Title $(function(){ var $cr = $("#cr");/*jQuery对象*/ /* $cr.click(function(){ alert("click") });*/ var cr =
2017-09-21 11:29:46
235
转载 计时器
Title0开始结束 var n=0; /*定时器*/ var begain=document.getElementById("begain"); var stop=document.getElementById("stop"); var timmer; begain.onclick=function(){
2017-09-21 11:24:38
154
原创 打开网页
Title /* var salary=prompt("请输入工资"); if(salary>20000){ document.write("土豪"); }else if(salary document.write("屌丝"); }else{
2017-09-21 11:23:05
150
转载 抽奖
Title .box{ width: 300px; padding: 20px 30px; border: 1px solid #999; } 开始抽奖结束抽奖 /*找见我们要操作的元素*/ var
2017-09-21 11:21:32
206
转载 添加
Title *{ margin: 0; padding: 0; } ul{ width: 400px; height: 400px; border: 1px solid #000000;
2017-09-21 11:14:20
179
转载 更改密码
Title * { margin: 0; padding: 0; } table { margin-top: 20px; border-collapse: collapse; }
2017-09-21 11:13:17
679
原创 验证
Title span{ color: red; } $(function () { $("#name").blur(function () { var le=$(this).val().length;
2017-09-21 11:10:00
172
转载 排序
Title *{ margin: 0; padding: 0; } table{ border-collapse: collapse; } td{ padding: 10px;
2017-09-21 10:44:29
149
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人