自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

共享时代

区款链经济的时代,

  • 博客(49)
  • 收藏
  • 关注

原创 Glide加载图片的类

import android.content.Context;import android.widget.ImageView;import com.bumptech.glide.Glide;import com.youth.banner.loader.ImageLoader;public class GlideImageLoader extends ImageLoader { ...

2018-04-06 17:12:23 290

原创 Retrofit工具类

import android.util.Log;import java.io.IOException;import java.util.HashMap;import java.util.Map;import okhttp3.FormBody;import okhttp3.Interceptor;import okhttp3.OkHttpClient;import okhttp...

2018-04-06 17:11:58 267

原创 Presenter基类

public abstract class BasePresenter<T> { protected Reference<T> mViewRef;//View接口类型弱引用 public void attachView(T view) { mViewRef = new WeakReference<T>(view); //建立关联...

2018-04-06 16:58:21 413

原创 接口

public interface ApiService { @FormUrlEncoded @POST("{url}") Observable<ResponseBody> doPost(@Path(value = "url",encoded = true) String url, @FieldMap Map<String,String> map);...

2018-04-06 16:57:06 240

原创 详情页面布局

详情页面布局<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/tools" android:l

2018-01-19 11:44:46 1566

原创 Android数据清除管理器

import android.content.Context;import android.os.Environment;import android.text.TextUtils;import java.io.File;import java.math.BigDecimal;/** * 本应用数据清除管理器 */public class DataClearManager {

2018-01-18 19:37:16 313

原创 OkHttp(get,post,拦截器,上传,下载)

拦截器import android.app.Activity; import android.content.Intent; import android.net.Uri; import android.os.Environment; import android.util.Log; import android.widget.Toast; import jav

2018-01-18 19:31:09 309

原创 AngularJs一些小知识点

A代表属性、E代表元素、C代表类、M代表注释

2018-01-18 08:48:50 230

原创 购物车的适配器

CartAdapterpublic class CartAdapter extends BaseExpandableListAdapter { private RelativeLayout relative_progress; private Context context; private Cart_Bean bean; private CartPresenter

2018-01-17 20:25:56 386 1

原创 购物车所需要的mvp,接口

CartPresenterpublic class CartPresenter implements ICartP{ private CartModel cartModel; private ICart icart; public CartPresenter(ICart icart) { this.icart = icart; cartMo

2018-01-17 20:16:14 272

原创 购物车需要的内容(二级列表、封装工具类)

自定义二级列表public class MyExpanableListView extends ExpandableListView { //自定义二级列表 public MyExpanableListView(Context context) { super(context); } public MyExpanableListView(Conte

2018-01-17 20:08:14 354

原创 仿购物车

购物车布局<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/tools" android:l

2018-01-17 20:06:08 263

原创 动画

动画<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/tools" android:layo

2018-01-17 19:46:44 219

原创 Android在运行的时候,报错及解决方法

一、Error:Execution failed for task ':app:javaPreCompileDebug'.> Annotation processors must be explicitly declared now. The following dependencies on the compile classpath are found to contain annot

2018-01-17 09:01:25 452

原创 其中用到的一些接口,组件,依赖,权限

IDengluPpublic interface IDengluP { void onSuccessLogin(Denglu_Bean bean); void onFaildLogin(String s);}IResignPpublic interface IResignP { void onResginSuccess(Zhuce_Bean bean); void

2018-01-07 22:51:16 464

原创 各个Model和Presenter

LoginModelpublic class LoginModel { private IDengluP iDengluP; public LoginModel(IDengluP iDengluP) { this.iDengluP = iDengluP; } public void sendDatas(String zhuCeUrl, Str

2018-01-07 22:48:14 358

原创 其中用到的各个适配器及布局文件

MyRecyclerAdapterpublic class MyRecyclerAdapter extends RecyclerView.Adapter{ private List list; private Context context; public MyRecyclerAdapter(List list, Context context) {

2018-01-07 22:35:43 449

原创 展示界面及Activity

布局文件<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/tools" android:l

2018-01-07 22:31:47 296

原创 查询界面及布局

查询界面<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/tools" android:l

2018-01-07 22:30:44 1284

原创 注册界面及Acticity

布局文件<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/tools" android:l

2018-01-07 22:27:39 522

原创 注册登录界面及该布局

MainActivity布局<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/tools"

2018-01-07 22:23:59 1275

原创 Main.xml

<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.

2018-01-01 21:22:51 810

原创 Main

package com.bwie.lizhi.zhoukao_lianxi;import android.os.Bundle;import android.support.v7.app.AppCompatActivity;import android.widget.Toast;import com.google.gson.Gson;import java.io.IOExceptio

2018-01-01 21:22:14 251

原创 CustomBanner

package com.bwie.lizhi.zhoukao_lianxi;import android.content.Context;import android.os.Handler;import android.os.Message;import android.support.annotation.AttrRes;import android.support.annotati

2018-01-01 21:21:39 350

原创 banner.xml

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content"> <android.support.v4.view.ViewPager

2018-01-01 20:58:28 324

原创 小圆点的实现.xml

2018-01-01 20:56:55 961

原创 对okHttp的封装

package com.bwie.lizhi.zhoukao_lianxi;import android.app.Activity;import android.content.Intent;import android.net.Uri;import android.os.Environment;import android.util.Log;import android.widge

2018-01-01 19:23:42 551

原创 练习二

id排序 商品名 用户名 手机号 价格排序 城市 下单时间排序 操作 {{d.id}} {{d.name}} {{d.user}} {{d.tel}} {{d.price | currency : "¥"}} {{d.city}} {{d.time | date

2017-12-21 12:53:28 249

原创 chat

var app = angular.module("myapp", []); app.controller("myc", function($scope) { $scope.data = [{ name: 1, state: false }, { name: 2, state: false }, { name: 3,

2017-12-21 11:57:15 288

原创 17练习

..

2017-12-18 08:29:41 239

原创 xx

charset="utf-8" />  type="text/javascript" src="js/angular/angular.js">  var app = angular.module("myApp", []); app.controller("myCtrl", function($scope) {

2017-12-12 08:30:06 467

原创 练习

姓名查询条件   用户列表 姓名 年龄 拼音 职位 操作 {{x.name | mingan}} {{x.age}} {{x.pinyin}} {{x.offer}}

2017-11-23 08:41:45 276

原创 批量删除 反选

全选/反选,批量删除姓名性别生日地址删除张三男2017-101-10北京海淀张三男2017-101-10北京海淀张三男2017-101-10北京海淀张三男2017-101-10北京海淀张三男2

2017-11-19 20:40:08 248

原创 练习3

姓名:位置:球号:票数:查询:排序:姓名位置承受伤害票数{{p.name | guolv}}{{p.weizhi}}{{p.qiuhao}}{{p.piaoshu}}var app = angular.module("Mapp",[]);app.filter("guolv",function()

2017-11-19 20:34:57 214

原创 练习2

模拟用户名:性别:男女地址:--省----市--用户名性别地址操作        逻辑代码        1.界面        2.获取名字,验证是否为空        3.获取性别        4.获取地址        5.添加到页面

2017-11-13 08:12:26 190

原创 网络封装

/**     * @param context     * @return 返回值 -1:没有网络  1:WIFI网络   2:net网络     */    public static int getNetype(Context context) {        int netType = -1;        ConnectivityManager connMgr

2017-10-25 19:57:58 257

原创 被嵌套的子类

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"> com.

2017-10-25 19:53:35 191

原创 第一个Fragement布局

LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> androi

2017-10-25 19:53:13 262

原创 主布局 (侧拉)

xml version="1.0" encoding="utf-8"?>android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns

2017-10-25 19:52:36 202

原创 嵌套的子类

public class Fragements1 extends Fragment { private String urls = "http://www.yulin520.com/a2a/impressApi/news/mergeList?pageSize=10&page="; private int us = 1; private View view; priv

2017-10-25 19:51:56 216

空空如也

空空如也

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

TA关注的人

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