- 博客(74)
- 收藏
- 关注
原创 多渠道打包
1.清单文件做以下配置 <meta-data android:name="UMENG_CHANNEL" android:value="${UMENG_CHANNEL_VALUE}" />1232.配置build.gradle 2.1配置渠道信息 方式一: productFlavors { kuan { ...
2018-02-26 16:05:14 258
原创 小练习(mvp)
//Modelpublic class Model implements IModel { private NewsPresenter presenter; public Model(NewsPresenter presenter) { this.presenter = presenter; } @Override public
2018-01-15 20:38:28 282
原创 小练习(Bean)
//Bean//Goodspublic class Goods { private String msg; private String code; private String page; private List data; public String getMsg() { return msg; }
2018-01-15 20:32:16 334
原创 小练习
//布局//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:
2018-01-15 20:26:32 205
原创 Mvp(RxJava2+Retrofit2+fresco+recyclerview)
//依赖 //recyclerview compile 'com.android.support:recyclerview-v7:26.+' //rxjava2 compile "io.reactivex.rxjava2:rxjava:2.1.7" compile 'io.reactivex.rxjava2:rxandroid:2.0.1' //retrof
2018-01-12 14:08:10 368
原创 Mvp(RxJava+Retrofit+fresco+recyclerview)
//依赖 //recyclerview compile 'com.android.support:recyclerview-v7:26.+' //rxjava2 compile "io.reactivex.rxjava2:rxjava:2.1.7" compile 'io.reactivex.rxjava2:rxandroid:2.0.1' //retr
2018-01-12 13:45:47 1263
原创 登录注册
首先在项目Model的build.gradle里面导入依赖//butterknife在Studio3.0版本上需使用以下8.8.1版本(下面2行代码都要加)compile 'com.jakewharton:butterknife:8.8.1'annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'compile '
2018-01-10 09:25:14 1238
原创 listview(retrofit)
//依赖compile 'com.squareup.retrofit2:retrofit:2.3.0'compile 'com.squareup.retrofit2:converter-gson:2.0.0-beta3'compile 'com.facebook.fresco:fresco:1.5.0'//清单uses-permission android:name="
2018-01-01 20:24:42 483
原创 mvp实现(banner+retrofit+recyclerview+fresco)
//依赖compile 'com.squareup.retrofit2:retrofit:2.0.0'compile 'com.squareup.retrofit2:converter-gson:2.0.2'compile 'com.youth.banner:banner:1.4.9'compile 'com.nostra13.universalimageloader:univers
2018-01-01 19:39:34 143
原创 数据库(简单的添加删除)
//依赖//app的// Top-level build file where you can add configuration options common to all sub-projects/modules.buildscript { repositories { jcenter() google() } depe
2018-01-01 18:58:57 254
原创 eventbus(简单传值)
//布局两个//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" xml
2017-12-28 19:03:33 241
原创 ButterKnife在项目中使用
一、ButterKnife在项目中使用 1.在项目的project 的build.gredle 文件中的dependencies标签下添加。 buildscript { repositories { jcenter() } dependencies { classpath ‘com.android.tools.build:gradle:2.2.2’ classpat
2017-12-27 18:47:41 186
原创 模拟器连不上解决方法
夜神模拟器:adb connect 127.0.0.1:62001逍遥安卓模拟器: adb connect 127.0.0.1:21503天天模拟器:adb connect 127.0.0.1:6555 海马玩模拟器 :adb connect 127.0.0.1:53001网易MUMU模拟器:adb connect 127.0.0.1:7555
2017-12-27 15:48:15 31437
原创 Fresco(加载图片)
//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:fresco="
2017-12-25 20:32:01 406
原创 bean
//AddGoodspackage com.bwei.geepeng.entity;public class AddGoods { /** * msg : 加购成功 * code : 0 */ private String msg; private String code;
2017-12-21 10:18:52 182
原创 订单
//CartActivitypackage com.example.yue;import android.content.Intent;import android.os.Bundle;import android.support.v7.app.AppCompatActivity;import android.view.View;import android.widget.Chec
2017-12-21 09:25:15 234
原创 小球
//activity_mainxml version="1.0" encoding="utf-8"?>android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com
2017-12-20 19:38:51 203
原创 添加购物&查看购物车
//清单uses-permission android:name="android.permission.INTERNET" />uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />uses-permission android:name="android.permission.READ_
2017-12-20 10:56:03 1048
原创 搜索物品
//依赖compile 'com.jakewharton:butterknife:8.5.1'compile 'com.google.code.gson:gson:2.8.2'compile 'com.github.bumptech.glide:glide:3.7.0'compile 'com.squareup.okhttp3:okhttp:3.9.0'compile 'com.a
2017-12-17 18:53:42 625
原创 mvp(okhttp)请求图片与数据
//依赖implementation files('libs/universal-image-loader-1.9.3-with-sources.jar')compile 'com.android.support:recyclerview-v7:23.4.0'compile 'com.squareup.okhttp3:okhttp:3.9.1'implementation files
2017-12-11 08:21:41 323
原创 第三方登录
//先看一下布局//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" xm
2017-12-07 09:50:30 216
原创 jar包(依赖)
//gsoncompile'com.google.code.gson:gson:2.8.0'//okcompile'com.squareup.okhttp:okhttp:2.7.5'compile'com.android.support:recyclerview-v7:25.1.1'//glide加载图片compile'com.github.bu
2017-12-07 09:44:47 986
原创 组合空间数据加减
//activity_mainxml version="1.0" encoding="utf-8"?>android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com
2017-12-05 14:33:01 166
原创 流式布局
//activity_mainxml version="1.0" encoding="utf-8"?>android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com
2017-12-05 13:59:36 176
原创 二维码
//avctivity_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
2017-12-04 20:05:52 262
原创 进度圆
//activity_main xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="ma
2017-12-03 20:03:41 196
原创 自定义view轮播
//activity_mainxml version="1.0" encoding="utf-8"?>android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com
2017-12-03 19:58:31 283
原创 自定义View
//activity_main.xmlxml version="1.0" encoding="utf-8"?>android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android
2017-11-28 19:31:40 139
原创 登录验证
//activity_main.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:
2017-11-28 19:18:19 243
原创 AngularJs查询,添加,修改
var app = angular.module("myApp", []);app.controller("myCtrl", function($scope) {$scope.goods = [{id: 80,name: "iphone",price: 5400,state: false}, {id: 1200,name: "ipad air",price:
2017-11-22 15:09:53 228
原创 下拉菜单过滤商品价格范围
//下拉菜单过滤商品价格范围$scope.productPrice = "--请选择--";$scope.isShow = function(price) {if($scope.productPrice == "--请选择--") {return true;} else {var priceArr = $scope.productPrice.split("-");var
2017-11-22 14:59:07 339
原创 购物车增减
-->var app = angular.module("myApp", ["ionic"]);app.controller("myCtrl", function($scope) {$scope.items = [{name: "纯手工制作木质时钟精致家具",price: 150,num: 1,url: "../image/a.png",state: f
2017-11-22 08:44:06 279
原创 鼠标上划
用css 添加手状样式,鼠标移上去变小手,变小手cursor:pointer;用JS使鼠标变小手onmouseover(鼠标越过的时候)asdfonmouseover="this.style.cursor='hand'"cursor其他取值 auto :标准光标 default :标准箭头 point
2017-11-22 08:42:21 243
原创 一生不羁放纵(小功能)
//查询filter:{'name':search}//查询+按钮查询filter:flag//过滤姓名$scope.name = "";$scope.flag = "";$scope.flag2 = false;$scope.filName = function() {if($scope.name.indexOf("敏感字符") >= 0) {
2017-11-21 20:08:54 259
原创 界面
var app = angular.module("myApp", []);app.controller("myCtrl", function($scope) {$scope.goods = [{name: "张三",age: 16,money: 1000,addr: "海淀"}, {name: "李四",age: 17,money: 2000,addr
2017-11-21 19:16:12 211
原创 增查排
*{ text-align: center; } table{ border-collapse: collapse; margin: 20px auto; width: 100%; } th,td{
2017-11-21 09:05:52 189
原创 3
var app = angular.module("myApp", []);app.controller("myCtrl", function($scope) {$scope.products = [{"id": 80,"name": "iPhone","price": 5400}, {"id": 1200,"name": "ipad mini","price"
2017-11-17 18:45:29 207
原创 AngularJS过滤器filter,orderBy排序,删除全部数据2
var app = angular.module("myApp", []);app.controller("myController", function($scope) {$scope.goods = [{id: 80,name: "iphone",price: 1100}, {id: 1200,name:" ipad mini",price: 2200}
2017-11-17 14:03:15 390
原创 自定义商品数据,实现对商品的过滤、排序和删除功能
AngularJS过滤器filter,orderBy排序,删除全部数据<script type="text/javascript" src="../js/angular.js" >var app = angular.module("myApp",[]);app.controller("myCtrl",function($scope){$scope.products = [
2017-11-16 19:46:20 378
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人