自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 完整购物车布局

购物车界面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_width="match_p

2017-12-20 11:54:19 509

原创 购物车--可编辑

购物车主界面布局xml version="1.0" encoding="utf-8"?>LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="match_parent"android:layout_height="match_parent"android

2017-12-20 11:21:26 1113

原创 MVP+RxJava+Retrofit+Fresco+屏幕适配

依赖包compile 'com.squareup.retrofit2:retrofit:2.0.2'compile 'com.squareup.retrofit2:converter-gson:2.0.2'compile 'com.squareup.retrofit2:adapter-rxjava:2.1.0'compile 'io.reactivex:rxjava:1.0.14'c

2017-12-10 21:12:50 516

原创 MVP+Fresco+OKhttp+Retrofit+Recycleview

接口:http://result.eolinker.com/umIPmfS6c83237d9c70c7c9510c9b0f97171a308d13b611?uri=homepageactivity_main布局ScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="

2017-12-06 21:00:28 590

原创 Retrofit+OkHttpClient+Fresco+XRecyclerView+RxJava实现数据展示

需要的依赖包compile 'com.squareup.retrofit2:retrofit:2.0.2'compile 'com.squareup.retrofit2:converter-gson:2.0.2'compile 'com.squareup.retrofit2:adapter-rxjava:2.1.0'compile 'io.reactivex:rxjava:1.0.14

2017-12-06 19:35:03 462

原创 网络判断

/** * Created by Administrator on 2017/12/2. * 网络状态判断工具类 */public class NetListener { public boolean isNetworkConnected(Context context) { if (context != null) { Connecti

2017-12-03 21:27:03 233

原创 GreenDao+ButterKnife+Retrofit+Fresco展示网络数据

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_width=

2017-12-03 21:14:22 274

原创 Retrofit的简单使用

1.添加依赖compile 'com.squareup.retrofit2:retrofit:2.0.0-beta4'//Retrofit2所需要的包compile 'com.squareup.retrofit2:converter-gson:2.0.0-beta4'//ConverterFactory的Gson依赖包compile 'com.squareup.retrofit2:conv

2017-12-01 21:42:21 291

原创 GreenDAO的简单应用

1.project下的build.gradle在classpath 'com.android.tools.build:gradle:3.0.0'下面添加classpath 'org.greenrobot:greendao-gradle-plugin:3.2.1'2.app下的build.gradleapply plugin: 'org.greenrobot.greendao'gr

2017-12-01 14:46:07 249

原创 Fresco的简单应用

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:layout_wi

2017-11-28 21:08:54 358

原创 网址

http://www.soogif.com/phone/indexhttp://frescolib.org/docs/webp-support.htmlhttp://frescolib.org/http://wensibo.top/2017/03/12/GitOnAS/https://www.fresco-cn.org/码云https://gitee.com/d1502/F

2017-11-28 18:57:28 1029

原创 Android自定义拦截器+展示数据+弹出框

//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_wi

2017-11-21 21:06:25 904

原创 自定义拦截器

//post请求public class MyInterceptor implements Interceptor { @Override public Response intercept(Chain chain) throws IOException { //获取原始的请求数据 Request request = chain.request(

2017-11-21 19:19:33 340

原创 Android实现购物车逻辑

//1.先创建eventbusevent包;2.创建MessageEvent类;3.创建PriceAndCountEvent类,用来存储价格和数量public class MessageEvent { private boolean checked; public boolean isChecked(){ return checked; }; p

2017-11-19 18:38:48 811

原创 Android二级列表仿购物车布局

//一级列表xml version="1.0" encoding="utf-8"?>LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="100dp" andro

2017-11-19 14:56:11 515 1

原创 Android瀑布流

//最外面嵌套RelativeLayout布局android.support.v7.widget.RecyclerView android:id="@+id/rv" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_margin="10d

2017-11-18 14:46:57 785

原创 OkHttpClient网络请求

import java.util.Map;import okhttp3.Callback;import okhttp3.FormBody;import okhttp3.OkHttpClient;import okhttp3.Request;import okhttp3.logging.HttpLoggingInterceptor;/** * Created by user on

2017-11-17 20:42:00 483

原创 仿购物车一级列表

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_width="match_parent"

2017-11-17 20:34:47 321

原创 Android常用依赖包

//OkHttpcompile 'com.squareup.okhttp3:okhttp:3.9.0'//拦截器compile 'com.squareup.okhttp3:logging-interceptor:3.9.0'//Gsoncompile 'com.google.code.gson:gson:2.8.2'//自动轮播图框架的依赖:compile 'com.y

2017-11-16 19:19:32 2709 1

原创 Android集成地图+模式切换

1、先加入lib包,添加依赖;2、引入jniLibs包;3、清单文件;4、开始布局,写代码activity_main布局xml version="1.0" encoding="utf-8"?>LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://sch

2017-11-15 10:03:54 466

原创 RecyclerView 刷新+加载

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://schemas.android.com

2017-11-12 20:50:30 312

原创 Recyclerview的简单应用

Main.xml布局,最外面嵌套一个LinearLayout布局RelativeLayout android:layout_width="match_parent" android:layout_height="40dp" android:background="#ff3660"> ImageView android:id="@+id/iv"

2017-11-11 09:42:55 395

原创 MVP注册登录+OkHttp网络请求+展示数据

left_item_font_selector.xmlxml version="1.0" encoding="utf-8"?>selector xmlns:android="http://schemas.android.com/apk/res/android"> item android:color="@color/colorRed" android:state_pressed="t

2017-11-08 21:13:47 1462 1

原创 Android多条目适配器

public class MyBaseAdapter extends BaseAdapter {    private Context context;    private ArrayList news;    public MyBaseAdapter(ArrayList news, Context context) {        this.news = news;

2017-11-07 20:28:11 435

原创 Android自定义View画圆+进度条+自定义View梯形

//自定义进度圆圈package com.bw.20171104;import android.content.Context;import android.content.res.TypedArray;import android.graphics.Canvas;import android.graphics.Color;import android.graphics.Paint

2017-11-05 18:35:26 1101 1

原创 自定义View排列

//梯形排列@Overrideprotected void onLayout(boolean changed, int l, int t, int r, int b) { int row = 0; int right = 0; int bottom = 0; for (int i = 0; i < getChildCount(); i++) {

2017-11-05 14:42:36 315

原创 Android的HttpUtils的网络请求OkHttp

package com.bw.utils;import android.content.Context;import android.widget.Toast;import java.util.Map;import okhttp3.Callback;import okhttp3.FormBody;import okhttp3.OkHttpClient;import okhttp

2017-11-03 20:01:39 350

原创 Android的Utils工具类的NetworkUtils

package com.bw.utils;import android.content.Context;import android.content.Intent;import android.net.ConnectivityManager;import android.net.NetworkInfo;import android.telephony.TelephonyManager;

2017-11-03 19:59:43 615

原创 android实现自定义顶部标题栏

标题布局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:layout_width="match_

2017-11-03 09:58:50 1008

原创 HttpURLConnection网络解析+universalimageloader解析图片+XListView刷新、加载+无限轮播

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="@+id/

2017-11-01 10:10:37 368

原创 AngularJS+用户查询+添加用户+修改密码

html>html lang="en">head> meta charset="UTF-8"> title>AngularJS+添加用户+修改密码title> style> *{ margin: 0 auto; } .box{ width: 800px;

2017-10-26 08:41:27 511

原创 AngularJS+查询+敏感字+排序+添加

html>html lang="en">head> meta charset="UTF-8"> title>球队title> style> *{ margin: 0 auto; } .box{ width: 800px; height: 700px;

2017-10-26 08:30:17 325

原创 AngularJS+页面切换+侧滑

html>html lang="en">head> meta charset="UTF-8"> title>Titletitle> style> *{ margin: 0 auto; } body{ position: relative; }

2017-10-23 08:23:04 1450

原创 AngularJS+路由

html>html lang="en">head> meta charset="UTF-8"> title>Titletitle> style> a{ display: inline-block; width: 200px; height: 40px; lin

2017-10-23 08:12:23 394

原创 AngularJS+添加+条件筛选+排序

html>html lang="en">head> meta charset="UTF-8"> title>球队title> script src="../angular-1.5.5/angular.min.js">script> script> var app = angular.module("myapp",[]); app.

2017-10-21 11:09:15 1494

原创 ionic+侧滑+轮播+刷新

html>html lang="en">head> meta charset="UTF-8"> meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,minimum-scale=1.0,user-scalable=0" /> title>侧滑title

2017-10-18 20:21:59 488

原创 ionic+meta name+AnjularJS+添加购物车

html>html lang="en">head> meta charset="UTF-8"> title>ionictitle> --> meta name="viewport" content="width=device-width,height=device-height,initial-scale=1.0, minimum-scale=1.0, maxi

2017-10-17 18:43:37 331

原创 AngularJS+清空购物车+全选+sort排序

html>html lang="en">head> meta charset="UTF-8"> title>我的购物车title> script src="../angular-1.5.5/angular.min.js">script> script> var myapp=angular.module("myapp",[]); v

2017-10-15 14:48:48 894

原创 AngularJS+购物车+全选+清空+删除

html>html lang="en">head> meta charset="UTF-8"> title>商品title> style> span{ display: inline-block; width: 18px; height: 18px; line

2017-10-14 11:30:45 636

原创 AngularJS+日程表+显示、隐藏 +orderBy排序

html>html lang="en">head> meta charset="UTF-8"> title>日程表title> script src="../angular-1.5.5/angular.min.js">script> script> var data = { user:"李四", i

2017-10-13 13:58:09 697

空空如也

空空如也

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

TA关注的人

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