- 博客(57)
- 收藏
- 关注
原创 RecyclleView使用RxJava与Retrofit网络加载Fresco
dimens: 16dp 16dpactivity_main:<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layou
2017-12-21 10:32:50 459
原创 PullToRefresh和TableLayout,fragment的联合使用
布局:radio_selecter: frame_layout:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height=
2017-12-21 09:59:29 339
原创 RxJava简单使用
需要的依赖: compile 'io.reactivex.rxjava2:rxandroid:2.0.1' compile 'io.reactivex.rxjava2:rxjava:2.1.7' compile 'com.squareup.retrofit2:retrofit:2.3.0' compile 'com.google.code.gson:gson:2.8
2017-12-21 09:35:44 1270
原创 MVP网络购物车
布局:dimens: 10dp 5dp 10dp 16sp 14sp 200dp 30dp 15dp 1dp 5dp 12sp 2dp 20dpcolors: #3F51B5 #303F9F #FF4081
2017-12-21 09:00:59 334
原创 MVP接口登录注册
布局:activity_zc:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/too
2017-12-20 20:39:14 342 1
原创 Android商品搜索
activity_main:<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tool
2017-12-20 19:50:58 498
原创 viewPager本地图片自动轮播
MainActivity:package com.example.viewpagerdemo01;import java.util.ArrayList;import java.util.List;import com.example.viewpagerdemo01.adapter.ViewPagerAdapter;import android.os.Bundle;import
2017-12-20 19:38:24 179
原创 Viewpager小圆点ImageLoader加载
布局:<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="m
2017-12-20 19:32:13 183
原创 ViewPager网络加载图片
首页:activity_main:<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:
2017-12-20 19:27:50 2711
原创 MVP结合RecycleView,利用retrofit与RxJava简单请求数据
这只是一个小Demo,仅供参考,步骤如下:先将依赖导入,需要的依赖: compile 'io.reactivex.rxjava2:rxandroid:2.0.1' compile 'io.reactivex.rxjava2:rxjava:2.1.7' compile 'com.squareup.retrofit2:adapter-rxjava2:2.3.0' com
2017-12-07 13:45:47 394
原创 RxJava与retorfit联合使用
使用的接口:http://m.yunifang.com/yunifang/mobile/home创建一个按钮进行点击执行接口类:IInterfaceimport io.reactivex.Observable;import okhttp3.ResponseBody;import retrofit2.Call;import retrofit2.http.DELETE;import
2017-12-04 21:37:07 466
原创 fragment联动与RecycleView请求数据(包含retrofit,Fresco,EventBus与GreenDao结合MVP)
项目需要的依赖以及一些权限配置;权限: 依赖:compile 'com.jakewharton:butterknife:7.0.0' compile 'org.greenrobot:eventbus:3.1.1' compile 'com.facebook.fresco:fresco:0.14.1' compile 'com.android.support:
2017-12-03 20:40:58 516
原创 MVP结合(RecycleView,Retorfit,GreenDao和EventBus)数据展示
代码使用的依赖: compile'org.greenrobot:greendao:3.0.1' compile'org.greenrobot:greendao-generator:3.0.0' compile 'com.jakewharton:butterknife:7.0.0' compile 'org.greenrobot:eventbus:3.1.1' c
2017-12-01 20:22:34 322
原创 二级购物车附加:
因为前一篇文章有些许bug,所以添加一个新的接口:http://120.27.23.105/product/getCarts?uid=100而且bean类有些特殊,所以添加一个bean类来做补充:ShopBean:package com.bawei.lei.guoleicar20171123.bean;import java.util.List;/** * Create
2017-11-23 08:35:39 356
原创 MVP二级购物车
这是需要的一些依赖: compile 'com.squareup.okhttp3:okhttp:3.9.0' compile 'com.google.code.gson:gson:2.8.2' compile 'com.jakewharton:butterknife:8.8.1' compile 'com.nostra13.universalimageloader:unive
2017-11-22 20:09:06 205
转载 MVP登录注册
activity_main主布局:<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/
2017-11-12 20:08:26 418
转载 自定义view圆形进度条,矩形与二维码
主界面布局:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:orientation="vertical" android:layout_height="match_parent"
2017-11-05 19:09:44 272
转载 AngularJs购物车添加订单综合
#tid1{ font-size: 12px; text-align: center; } #tid1 thead{ background: gray; } #tid1 tbody tr:nth-child(
2017-10-26 08:06:50 466
原创 Angularjs购物车订单强化
var app = angular.module("myApp",['ngRoute']); //配置路由 app.config(["$routeProvider",function($routeProvider){ $routeProvider .when("/",{}) .when("/addOrder",{ controller:"addO
2017-10-25 15:33:19 252
原创 Angularjs学生信息管理
var app = angular.module("myApp",[]); app.controller("myCtrl",function($scope){ $scope.users = [ {id:1,name:"Tom",pwd:"111",age:12,sex:"男",state:false}, {id:2,name:"Jenny"
2017-10-25 09:37:56 437
原创 Angularjs添加用户
添加元素 button{ border: 5px solid blue; background-color: blue; border-radius: 5%; } var app = angular.module("myApp",[]); app.controller("myCtrl",function($scope){
2017-10-25 09:31:24 271
转载 AngularJs路由综合
<!--这是我做的五个angularJS的切换跳转 因为时间原因只做了1 3 5 这三个第一个是网络的请求数据第二个是列表排序第三个是小游戏 输入数字大小判断--> 路由 li { list-style-type: none; font-size: 30px;
2017-10-24 20:25:28 179
原创 AngularJS路由与修改
综合练习 .addUser{ width: 100px;height: 40px;font-size: 18px;background-color: #11C1F3; } var app = angular.module("myApp",["ngRoute"]); //使用config配置路由规则 app.config(["
2017-10-24 20:00:40 680
原创 Angularjs多种服务
定时服务: var app = angular.module("myApp",[]); app.controller("myCtrl",function($scope,$interval){ $scope.date = new Date().toLocaleTimeString(); $interval(function(){
2017-10-24 19:23:11 128
转载 AngularJs购物车价格计算
序列一(y):h3{margin-right: 400px;}table, th , td { border: 1px solid grey; border-collapse: collapse; padding: 5px;}table tr:nth-child(odd) { background-color: #f1f1f1;}t
2017-10-24 19:03:03 400
转载 AngularJs路由与添加用户(2)
var app=angular.module("myApp",["ngRoute"]);app.config(["$routeProvider",function($routeProvider){ $routeProvider .when("/addUser",{
2017-10-23 20:26:41 207
原创 AngularJs路由与添加用户(1)
.left{float: left;}.right{float: right;}.even{background-color: blue;}.odd{background-color: red;}.first{background-color: yellow;}.f{background-color: pink;}.d{b
2017-10-23 20:17:26 208
原创 AngularJS记账本类型
Title body{ position: relative; } ul{ width: 400px; height: 300px; border: 1px solid #000; } li{
2017-10-22 19:09:19 233
原创 AngularJs路由修改密码表单展示
.addUser{width: 100px;height: 40px;font-size: 18px;background-color: #11C1F3;}var app = angular.module("myApp",["ngRoute"]);//定义路由规则app.config(["$routeProvider",function($routeProvid
2017-10-22 19:03:29 244
原创 AngularJs数据管理与路由
综合练习.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:01:44 373
原创 Jquery添加用户使用
$(function(){//给按钮添加点击事件$("#btn").click(function(){//用户输入的信息var name = $("input:eq(0)").val();var email = $("input:eq(1)").val();var tel = $("input:eq(2)").val();var flag1 = flag2 = fl
2017-10-22 18:45:16 373
原创 学生管理反选删除
var app = angular.module("myApp", []);//主控制器app.controller("myCtrl", function($scope) {$scope.users = [{id: 1,name: "a",pwd: "111",age: 12,sex: "男",state: false},{id: 2,n
2017-10-22 18:41:02 174
原创 AngularJS用户管理
学生信息管理 var app = angular.module("myApp",[]); app.controller("myCtrl",function($scope){ $scope.users = [ {id:1,name:"Tom",pwd:"111",age:12,sex:"男",state:false},
2017-10-22 18:38:00 237
原创 AngularJS登录注册
test2 .state1{ color:#aaa; } .state2{ color:#000; } .state3{ color:red; } .state4{ color:green; }
2017-10-15 20:16:38 1533
转载 猜数字游戏
html>html lang="en">head> meta charset="UTF-8"> title>Titletitle> style> *{ margin: 0; padding: 0; font-size: 30px; } input{
2017-10-15 19:00:56 188
原创 购物车表格样式
var app = angular.module("myApp",[]);app.controller("myCtrl",function($scope){$scope.products = [{id:80,name:"iphone",price:5400},{id:150,name:"ipad mini",price:2200},{id:120,n
2017-10-15 18:37:45 644
原创 DrawerLayout与listView结合(drawerlayout条目点击显示)
布局: xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/drawer_gen" >
2017-09-21 19:57:41 1244
原创 horizaontal_scroll使用
布局: xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent"> android:layout_width="wrap_content"
2017-09-21 11:12:47 208
原创 DrawerLayout与XlistView结合
布局:主: xmlns:tools="http://schemas.android.com/tools" android:id="@+id/drawer_layout" android:layout_width="match_parent" android:layout_height="match_parent">
2017-09-21 10:28:59 153
原创 PullToRefresh,fragment与TabLayout使用
布局:主布局: xmlns:tools="http://schemas.android.com/tools" android:id="@+id/drawer_layout" android:layout_width="match_parent" android:layout_height="match_parent">
2017-09-21 10:15:06 243
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人