- 博客(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 165
原创 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 158
原创 购物车布局
<?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 247
原创 动画、购物车、订单
一、权限、依赖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 300
原创 购物车
使用接口: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 293
原创 属性动画
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 108
原创 常用依赖
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 170
原创 自定义listview计算高度
int height = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST);super.onMeasure(widthMeasureSpec, height);
2018-01-12 15:46:53 346
原创 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 147
原创 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 116
原创 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 251
原创 登录 注册 流式布局 搜索商品
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 550
原创 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 305
原创 沉浸式
设置 Acitivity 所在 window 的属性 @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (VERSION.SDK_INT >= VERSION_CODES.KITKAT) {
2018-01-03 19:29:33 144
原创 自定义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 184
原创 工具类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 160
原创 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 137
原创 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 135
原创 全选/反选
.botn { width: 80px; height: 30px; background-color: greenyellow; border: 1px solid black; border-radius:5px ;
2017-12-21 10:07:13 106
原创 排序
table tr:nth-child(odd){ background-color: #DFDFDF; } var app=angular.module("myapp",[]); app.controller("myctrl",
2017-12-21 10:04:40 110
原创 表头排序 价格区间查询
*{ margin: 10px; } var app=angular.module("myApp",[]); app.controller("myCtrl",function($scope){
2017-12-21 09:42:49 374
原创 商品订单信息管理
.kuan { width: 100px; height: 20px; border-top-left-radius: 5em; border-top-right-radius: 5em; border-bottom-right-
2017-12-21 09:30:41 719
原创 注册信息
注册信息 *{ margin: 0px; padding: 0px; } form{ width: 470px; height: 570px;
2017-12-21 09:14:54 175
原创 资产登记
第三周周考 #div { margin-top: 20px; } var app = angular.module("myapp", []); //定义控制器
2017-12-21 09:12:55 228
原创 购物车加减计算总价
var app = angular.module("myApp", []); app.controller("myCtrl", function($scope) { $scope.shops = [{ name: "苹果", price: 3,
2017-12-20 15:35:10 1046
原创 购物车 删除 计算总额
*{ margin: 0px; padding: 0px; } body{ width: 1268px; height: 221px; } table{
2017-12-18 16:39:10 238
原创 angular js查询 排序 添加 删除
body{ width: 730px; height: 245px; } #in{ width: 150px; height: 23px; border: 1px solid b
2017-12-16 16:52:17 159
原创 表单验证+二级联动+添加+全选/反选+删除
.botn { width: 80px; height: 30px; background-color: greenyellow; border: 1px solid black; border-radius:5px ;
2017-12-10 20:47:57 270
原创 表单验证+添加+查询+排序+删除
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 210
原创 jQuery表单验证
第二周模拟考试 .odd{ background-color:blue; } .even{ background-color:red; } $(function(){ //按钮点击事件
2017-12-09 15:12:07 185
原创 信息表
table{ width: 200px; height: 200px; border: 1px solid black; border-collapse: collapse; text-align: center;
2017-12-08 21:00:22 170
原创 点击显示或隐藏 slideDown/slideUp
$(function(){ $("button:eq(0)").click(function(){ $("div").slideDown(); }); $("button:eq(1)").click(function(){
2017-12-08 20:59:45 1668
原创 jQuery登录验证
登录 $(function(){ var flag=false; $("span").hide(); $("b").hide(); //姓名 $("input:eq
2017-12-08 20:57:25 554
原创 隔行变色
$(document).ready(function(){ //隔行变色 $("tr:even").addClass("even"); $("tr:odd").addClass("odd"); //点击变色 $("tr").click(function(){ $(th
2017-12-08 20:56:20 135
原创 点击按钮切换图片
选显卡切换 .img0 { height: 300px; width: 700px; } .ul0 { list-style: none; }
2017-12-02 16:17:03 2404
原创 按钮点击事件(包含外部JS)
js js引入 1.直接写在标签里面 onclick 点击事件 得到光标事件 onfocus 失去光标 onblur 双击
2017-12-02 16:15:27 1941
原创 警示框+输入框+确认框
js BOM browser object meodel 浏览器对象模型 操作浏览器里面的功能。 window alert()警示框 prompt() 输入框
2017-12-02 16:02:20 1002
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人