自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

转载 日夜间模式

dimens         16dp     16dp colors     #3F51B5     #3b3b3b     #303F9F     #383838     #FF4081     #a72b55     #FF000000     #FFFFFF     #FFFFFF     #3b3b3b at

2018-01-29 10:31:35 263

原创 使用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 2213

转载 上传头像(拍照或者本地上传)

activity_main.xml LinearLayout 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 456

原创 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 928

原创 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 441

原创 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 346

原创 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 371

原创 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 968

原创 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 668

原创 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 575

原创 简单使用EventBus

compile 'org.greenrobot:eventbus:3.1.1' MessageEvent package app.my.com.eventbus; /** * Created by lenovo on 2017/11/29. */ public class MessageEvent { public boolean tag; p

2017-11-29 19:18:26 214

原创 自定义ButterKnife

compile 'com.jakewharton:butterknife:8.8.1' annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1' activity_main.xml xml version="1.0" encoding="utf-8"?> LinearLayout xmlns:andro

2017-11-28 20:35:44 209

原创 二级列表 购物车

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 356

转载 Listview + 下拉图片放大,手指放开图片缩回

转载自: http://www.jcodecraeer.com/a/anzhuokaifa/androidkaifa/2014/0627/1625.html activity_main.xml xml version="1.0" encoding="utf-8"?> RelativeLayout xmlns:android="http://schemas.android.co

2017-11-21 09:05:54 303

原创 Android 单独的一个购物车

这是到一个GitHub的地址 https://github.com/panjiangang/lianxi3/tree/master/ShoppingCart

2017-11-17 13:44:26 250

转载 一个简单的极光推送

https://www.2cto.com/kf/201701/590009.html

2017-11-15 20:35:11 285

原创 一个简单的高德地图定位实现

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 606

转载 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 420

原创 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 280

原创 RecyclerView 瀑布流显示图片

activity_main.xml xml 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 316

原创 RecyclerView LinearLayout 显示图片

activity_main.xml xml 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 380

原创 RecyclerView 瀑布流显示图片

需要导入依赖 image-loader butterknife butterknife-compile recyclerView 加一个网络请求权限 layout_item.xml xml version="1.0" encoding="utf-8"?> LinearLayout xmlns:android="http://schemas.android.co

2017-11-08 14:38:02 328

原创 MVP 登录+注册

activity_main.xml xml 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 327

原创 强转字符串类型+截取字符串

//将double类型,强转成String类型                 double price = list.get(i).getPrice();                 String b=String.valueOf(price);                 holder.te2.setText(b);                 Stri

2017-11-07 20:18:59 395

原创 view 自定义标题+点击才开始的进度条+使用二维码

activity_main.xml xml 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 207

原创 View 贝塞尔

activity_main.xml 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:tool

2017-11-03 21:06:54 188

原创 MVP 替换标题栏,并在左右添加点击事件

kaoshi_title_layout.xml xml 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 368

原创 MVP 一个简单的登录+判断

activity_main xml 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 203

原创 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 232

原创 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 221

原创 view 设置一个空心圆进度条+文本居中

activity_main 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:too

2017-11-01 19:40:23 433

原创 view 画出一个形状,并在里面添加内容+文本居中

activity_main 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:too

2017-11-01 18:58:02 359

转载 HTML angular:订单查询添加等

Title             *{             margin: 0;             padding: 0;         }         body         {             width: 1600px;             margin: 0 auto;             margin-top: 50px;   

2017-10-26 08:09:36 307

原创 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 247

原创 dddhhhfff

Title                 var app = angular.module("myApp",[]);         app.controller("myCtrl",function ($scope) {             $scope.goods= [{                 check:false,                 nam

2017-10-24 20:27:53 230

原创 HTML angular购物车:加减按钮改变数量+全选+低于1时提示删除商品+计算所有商品总价+清空购物车+单独删除+输入内容小于1时,自动变为1+反选

购物车                  -->                      var app = angular.module("myApp", []);             app.controller("myController", function($scope) {                 $scope.user = [{

2017-10-24 13:43:12 1418

原创 html angular+jquery:判断密码并改变标签样式+新增提示内容

#ts {                 width: 148px;             }                                                 flag = false;             var app = angular.module("myApp", []);             app.controller("

2017-10-24 09:51:27 269

原创 html angular+route:模糊查询+下拉排序+新增内容+判断是否重复+输入敏感字提示

第三周                      tr {                 background: #D4D4D4;             }                          tr:nth-child(2n) {                 background: #FFFFFF;             }

2017-10-23 16:00:26 258

转载 html angular+route:模糊查询+限定年龄范围+全部删除+批量删除+修改密码+添加用户

第三周模拟                                        var app = angular.module("myApp", ['ngRoute']);             //使用config配置路由规则             app.config(["$routeProvider", function($routeProvider) {

2017-10-22 20:09:55 480

原创 HTML route 登录+游戏+修改密码

路由                      *{margin:0px auto;}             li {                 list-style-type: none;                 border: 1px solid deepskyblue;                 text-align: center;           

2017-10-20 20:29:29 1041

空空如也

空空如也

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

TA关注的人

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