- 博客(82)
- 收藏
- 关注
转载 日夜间模式
dimens 16dp 16dpcolors #3F51B5 #3b3b3b #303F9F #383838 #FF4081 #a72b55 #FF000000 #FFFFFF #FFFFFF #3b3b3bat
2018-01-29 10:31:35
237
原创 使用Kotlin进行网络请求+Glide加载图片
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.squareup.retrofit2:adapter-rxjava2:2.3.0'compil
2018-01-10 17:21:28
2194
转载 上传头像(拍照或者本地上传)
activity_main.xmlLinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layo
2017-12-20 14:31:22
445
原创 fresco加载GIF格式图片
compile 'com.facebook.fresco:imagepipeline-okhttp3:0.11.0'compile 'com.facebook.fresco:fresco:0.12.0'compile 'com.facebook.fresco:animated-base-support:0.12.0'compile 'com.facebook.fresco:animated-
2017-12-13 14:25:55
912
原创 fresco加载图片+retrofit网络请求+rxjava2+xrecyclerview下拉刷新上拉加载
compile 'com.jakewharton:butterknife:8.8.1'annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'implementation 'com.google.code.gson:gson:2.8.2'compile 'com.facebook.fresco:fresco:0.11.0
2017-12-05 14:07:41
420
原创 rxjava2 与 retrofit 网络请求
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.2'compile 'com.squa
2017-12-04 20:38:45
331
原创 FrameLayout布局+banner+fresco+recycleView多条目+retrofit请求网络
compile 'com.liaoinstan.springview:library:1.2.6'compile 'com.github.liuguangqiang.SuperRecyclerView:super-recyclerview:0.1.2'compile 'com.youth.banner:banner:1.4.10'compile 'com.jakewharton:butter
2017-12-04 15:09:05
360
原创 Fresco与banner结合展示无限轮播
com.youth.banner.Banner android:id="@+id/ban" android:layout_width="match_parent" android:layout_height="150dp" />public class HomePage extends Fragment { Banner ban;String[] urls =
2017-12-04 14:39:25
948
原创 GreenDao + 请求网络数据添加到数据库 + 新增+删除 +查询
buildscript { repositories { google() jcenter() mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:3.0.1' classpath 'org.gr
2017-12-01 15:06:38
659
原创 Retrofit 请求网络数据 并适配到 ListView
compile 'com.squareup.retrofit2:retrofit:2.3.0'compile'com.squareup.retrofit2:converter-gson:2.3.0'implementation 'com.google.code.gson:gson:2.8.2'uses-permission android:name="android.permi
2017-11-30 20:18:03
565
原创 简单使用EventBus
compile 'org.greenrobot:eventbus:3.1.1'MessageEventpackage app.my.com.eventbus;/** * Created by lenovo on 2017/11/29. */public class MessageEvent { public boolean tag; p
2017-11-29 19:18:26
199
原创 自定义ButterKnife
compile 'com.jakewharton:butterknife:8.8.1'annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'activity_main.xmlxml version="1.0" encoding="utf-8"?>LinearLayout xmlns:andro
2017-11-28 20:35:44
197
原创 二级列表 购物车
compile 'com.squareup.okhttp3:okhttp:3.9.0'compile 'com.jakewharton:butterknife:8.8.1'compile 'com.jakewharton:butterknife-compiler:8.8.1'compile 'com.nostra13.universalimageloader:universal-image-
2017-11-21 12:05:31
347
转载 Listview + 下拉图片放大,手指放开图片缩回
转载自:http://www.jcodecraeer.com/a/anzhuokaifa/androidkaifa/2014/0627/1625.htmlactivity_main.xmlxml version="1.0" encoding="utf-8"?>RelativeLayout xmlns:android="http://schemas.android.co
2017-11-21 09:05:54
280
原创 Android 单独的一个购物车
这是到一个GitHub的地址https://github.com/panjiangang/lianxi3/tree/master/ShoppingCart
2017-11-17 13:44:26
235
原创 一个简单的高德地图定位实现
1.下载一个定位的sdk http://lbs.amap.com/api/android-sdk/download/2在高德地图控制台获取到自己的key值 .http://lbs.amap.com/3.将下载的架包放在libs目录下4.在main文件夹中创建 jniLibs 文件夹并把你解压出来的其他文件放到jniLibs文件夹中5.--
2017-11-15 20:09:03
596
转载 MVP+XRecyclerView+okhttp+glide,列表或者网格显示所加载的数据
dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', mod
2017-11-13 20:22:10
409
原创 MVP okhttp+springview+RecyclerView 上拉下拉功能+多条目加载
这个工程所需要的依赖dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.s
2017-11-10 20:39:04
269
原创 RecyclerView 瀑布流显示图片
activity_main.xmlxml version="1.0" encoding="utf-8"?>RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+i
2017-11-09 20:49:18
302
原创 RecyclerView LinearLayout 显示图片
activity_main.xmlxml version="1.0" encoding="utf-8"?>RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@
2017-11-09 20:46:35
366
原创 RecyclerView 瀑布流显示图片
需要导入依赖image-loaderbutterknifebutterknife-compilerecyclerView加一个网络请求权限layout_item.xmlxml version="1.0" encoding="utf-8"?>LinearLayout xmlns:android="http://schemas.android.co
2017-11-08 14:38:02
307
原创 MVP 登录+注册
activity_main.xmlxml version="1.0" encoding="utf-8"?>LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+i
2017-11-07 20:25:38
313
原创 强转字符串类型+截取字符串
//将double类型,强转成String类型 double price = list.get(i).getPrice(); String b=String.valueOf(price); holder.te2.setText(b); Stri
2017-11-07 20:18:59
382
原创 view 自定义标题+点击才开始的进度条+使用二维码
activity_main.xmlxml version="1.0" encoding="utf-8"?>LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:custom="http://schemas.android.com/apk/res-auto" xmlns:t
2017-11-05 17:55:59
200
原创 View 贝塞尔
activity_main.xmlxml 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:tool
2017-11-03 21:06:54
176
原创 MVP 替换标题栏,并在左右添加点击事件
kaoshi_title_layout.xmlxml version="1.0" encoding="utf-8"?>LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_heigh
2017-11-03 20:29:50
361
原创 MVP 一个简单的登录+判断
activity_mainxml version="1.0" encoding="utf-8"?>LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_widt
2017-11-02 20:57:26
195
原创 view 图像可鼠标按住移动
xml version="1.0" encoding="utf-8"?>RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:custom="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schema
2017-11-01 20:17:21
216
原创 view 实心园进度条
xml version="1.0" encoding="utf-8"?>RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:custom="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schema
2017-11-01 20:12:09
211
原创 view 设置一个空心圆进度条+文本居中
activity_mainxml version="1.0" encoding="utf-8"?>RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:custom="http://schemas.android.com/apk/res-auto" xmlns:too
2017-11-01 19:40:23
417
原创 view 画出一个形状,并在里面添加内容+文本居中
activity_mainxml version="1.0" encoding="utf-8"?>RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:custom="http://schemas.android.com/apk/res-auto" xmlns:too
2017-11-01 18:58:02
346
转载 HTML angular:订单查询添加等
Title *{ margin: 0; padding: 0; } body { width: 1600px; margin: 0 auto; margin-top: 50px;
2017-10-26 08:09:36
295
原创 HTML angular+route:订单
html> head> meta charset="UTF-8"> title>title> script type="text/javascript" src="../AngularJS/angular.js" >script> script type="text/javascript" src="../AngularJS/angular-route.js" >script>
2017-10-25 19:11:14
235
原创 dddhhhfff
Title var app = angular.module("myApp",[]); app.controller("myCtrl",function ($scope) { $scope.goods= [{ check:false, nam
2017-10-24 20:27:53
222
原创 HTML angular购物车:加减按钮改变数量+全选+低于1时提示删除商品+计算所有商品总价+清空购物车+单独删除+输入内容小于1时,自动变为1+反选
购物车 --> var app = angular.module("myApp", []); app.controller("myController", function($scope) { $scope.user = [{
2017-10-24 13:43:12
1391
原创 html angular+jquery:判断密码并改变标签样式+新增提示内容
#ts { width: 148px; } flag = false; var app = angular.module("myApp", []); app.controller("
2017-10-24 09:51:27
256
原创 html angular+route:模糊查询+下拉排序+新增内容+判断是否重复+输入敏感字提示
第三周 tr { background: #D4D4D4; } tr:nth-child(2n) { background: #FFFFFF; }
2017-10-23 16:00:26
246
转载 html angular+route:模糊查询+限定年龄范围+全部删除+批量删除+修改密码+添加用户
第三周模拟 var app = angular.module("myApp", ['ngRoute']); //使用config配置路由规则 app.config(["$routeProvider", function($routeProvider) {
2017-10-22 20:09:55
465
原创 HTML route 登录+游戏+修改密码
路由 *{margin:0px auto;} li { list-style-type: none; border: 1px solid deepskyblue; text-align: center;
2017-10-20 20:29:29
1022
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人