自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 小知识

xml布局里需要将textview的下面属性设置下:android:ellipsize="end"android:singleLine="true"其中:android:ellipsize=”start”—–省略号显示在开头 android:ellipsize=”end”——省略号显示在结尾 android:ellipsize=”middle”—-省略号显示在中间 "android:...

2018-03-19 18:01:33 172

原创 fresco加载图片

<?xml version="1.0" encoding="utf-8"?><LinearLayout android:orientation="vertical" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.

2018-03-15 23:12:05 165

原创 购物车布局

<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match

2018-03-11 15:06:25 259

原创 动画、购物车、订单

一、权限、依赖1.需要添加的依赖    compile 'com.android.support.constraint:constraint-layout:1.0.2'    compile 'com.android.support:appcompat-v7:26.0.0-alpha1'    compile 'com.nostra13.universalimageloader:universal

2018-01-18 10:00:37 319

原创 购物车

使用接口:http://120.27.23.105/product/getCartscompile 'com.squareup.okhttp3:okhttp:3.6.0'compile 'com.google.code.gson:gson:2.8.2'compile 'com.google.code.gson:gson:2.8.2'compile 'com.github.bumptech

2018-01-17 14:11:05 602

原创 属性动画

xmlxml version="1.0" encoding="utf-8"?>RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http:

2018-01-17 10:54:23 115

原创 常用依赖

XRecyclerViewcompile 'com.jcodecraeer:xrecyclerview:1.3.2'BottomTabBarcompile 'com.hjm:BottomTabBar:1.1.1'TabLayoutcompile'com.android.support:design:26.0.0-alpha1'TabLayou

2018-01-16 09:01:46 184

原创 自定义listview计算高度

int height = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST);super.onMeasure(widthMeasureSpec, height);

2018-01-12 15:46:53 352

原创 Imagpath

import android.app.Application;import com.example.mr.weektwo_work.Imagbase;public class Imagpath extends Application {    @Override    public void onCreate() {        super.onCreate();

2018-01-11 20:50:25 158

原创 Imagbase

import android.content.Context;import android.graphics.Bitmap;import android.os.Environment;import com.bwie.z.mydemo.R;import com.nostra13.universalimageloader.cache.disc.impl.UnlimitedDiskCache;

2018-01-11 20:49:12 123

原创 OkHttp3Util

import android.app.Activity;import android.content.Intent;import android.net.Uri;import android.os.Environment;import android.util.Log;import android.widget.Toast;import java.io.File;import ja

2018-01-11 20:47:17 261

原创 登录 注册 流式布局 搜索商品

main1布局    android:orientation="vertical"    xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:app="http://schemas.android.com/apk/res-auto"    xmlns:tools="http://schema

2018-01-07 19:38:00 569

原创 mvp的登录和注册

main布局xml version="1.0" encoding="utf-8"?>LinearLayout android:orientation="vertical" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/

2018-01-04 09:32:18 314

原创 去掉标题栏

清单中按着ctrl点击 android:theme="@style/AppTheme">中的AppTheme然后改成

2018-01-03 19:38:23 140

原创 沉浸式

设置 Acitivity 所在 window 的属性    @Override    protected void onCreate(Bundle savedInstanceState) {        super.onCreate(savedInstanceState);        if (VERSION.SDK_INT >= VERSION_CODES.KITKAT) {

2018-01-03 19:29:33 149

原创 自定义banner

main布局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://s

2018-01-02 14:43:16 192

原创 工具类Okhttp

main布局    xmlns:app="http://schemas.android.com/apk/res-auto"    android:orientation="vertical"    xmlns:tools="http://schemas.android.com/tools"    android:layout_width="match_parent"  

2018-01-01 20:45:26 172

原创 Okhttp

main布局    xmlns:app="http://schemas.android.com/apk/res-auto"    android:orientation="vertical"    xmlns:tools="http://schemas.android.com/tools"    android:layout_width="match_parent"  

2018-01-01 20:32:26 145

原创 RecyclerView

main布局    xmlns:app="http://schemas.android.com/apk/res-auto"    android:orientation="vertical"    xmlns:tools="http://schemas.android.com/tools"    android:layout_width="match_parent"

2018-01-01 20:10:10 144

原创 全选/反选

.botn {                width: 80px;                height: 30px;                background-color: greenyellow;                border: 1px solid black;                 border-radius:5px ;  

2017-12-21 10:07:13 115

原创 排序

table tr:nth-child(odd){                background-color: #DFDFDF;            }                                    var app=angular.module("myapp",[]);            app.controller("myctrl",

2017-12-21 10:04:40 111

原创 表头排序 价格区间查询

*{                margin: 10px;            }                                    var app=angular.module("myApp",[]);            app.controller("myCtrl",function($scope){                

2017-12-21 09:42:49 381

原创 商品订单信息管理

.kuan {                width: 100px;                height: 20px;                border-top-left-radius: 5em;                border-top-right-radius: 5em;                border-bottom-right-

2017-12-21 09:30:41 727

原创 注册信息

注册信息                    *{                margin: 0px;                padding: 0px;            }            form{                width: 470px;                height: 570px;          

2017-12-21 09:14:54 184

原创 资产登记

第三周周考                    #div {                margin-top: 20px;            }                                    var app = angular.module("myapp", []);            //定义控制器          

2017-12-21 09:12:55 235

原创 购物车加减计算总价

var app = angular.module("myApp", []);            app.controller("myCtrl", function($scope) {                $scope.shops = [{                    name: "苹果",                    price: 3,    

2017-12-20 15:35:10 1062

原创 购物车 删除 计算总额

*{                margin: 0px;                padding: 0px;            }            body{                width: 1268px;                height: 221px;            }            table{  

2017-12-18 16:39:10 247

原创 angular js查询 排序 添加 删除

body{                width: 730px;                height: 245px;            }            #in{                width: 150px;                height: 23px;                border: 1px solid b

2017-12-16 16:52:17 168

原创 表单验证+二级联动+添加+全选/反选+删除

.botn {                width: 80px;                height: 30px;                background-color: greenyellow;                border: 1px solid black;                 border-radius:5px ;  

2017-12-10 20:47:57 279

原创 表单验证+添加+查询+排序+删除

1.布局    2.定义数组,自拟4条数据    3.用ng-repeat讲数组中的数据添加到表格中    4.用filter进行搜索    5.点击按钮把未发货的状态改为已发货的状态    6.通过选中checkbox 把已发货的状态删除    7.价钱:用currercy   时间:date:'MM-dd hh:mm:ss'    8.span显示提示错误的信息  

2017-12-10 20:45:52 216

原创 jQuery表单验证

第二周模拟考试                .odd{            background-color:blue;        }        .even{            background-color:red;        }                $(function(){            //按钮点击事件

2017-12-09 15:12:07 192

原创 信息表

table{                width: 200px;                height: 200px;                border: 1px solid black;                border-collapse: collapse;                text-align: center;      

2017-12-08 21:00:22 178

原创 点击显示或隐藏 slideDown/slideUp

$(function(){                $("button:eq(0)").click(function(){                    $("div").slideDown();                });                $("button:eq(1)").click(function(){              

2017-12-08 20:59:45 1699

原创 jQuery登录验证

登录                            $(function(){                var flag=false;                $("span").hide();                $("b").hide();                //姓名                $("input:eq

2017-12-08 20:57:25 570

原创 隔行变色

$(document).ready(function(){ //隔行变色             $("tr:even").addClass("even");             $("tr:odd").addClass("odd");  //点击变色              $("tr").click(function(){               $(th

2017-12-08 20:56:20 139

原创 复选框全选/反选

篮球            乒乓球            排球            滑雪                                                                            function quan(){                //获取所有的复选框//

2017-12-02 16:19:15 127

原创 点击按钮切换图片

选显卡切换                    .img0 {                height: 300px;                width: 700px;            }                        .ul0 {                list-style: none;            }

2017-12-02 16:17:03 2417

原创 按钮点击事件(包含外部JS)

js                            js引入                1.直接写在标签里面                onclick  点击事件                得到光标事件 onfocus                失去光标       onblur                双击             

2017-12-02 16:15:27 1970

原创 计算

计算器案例                    获取标签            获取标签里面的值            运算                        定义变量            var - variable 变量        -->                第一个数:        第二个数据:        

2017-12-02 16:09:07 107

原创 警示框+输入框+确认框

js                    BOM                browser object meodel  浏览器对象模型                操作浏览器里面的功能。                window                    alert()警示框                    prompt() 输入框  

2017-12-02 16:02:20 1023

空空如也

空空如也

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

TA关注的人

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