自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 工具类

OkHttp3Utilpublic class OkHttp3Util { private static OkHttpClient okHttpClient = null; private OkHttp3Util() { } public static OkHttpClient getInstance() { if (okHttpCli...

2018-03-07 09:28:05 180

原创 前端开发

输入产品名称: 数量排序:产品编号产品名称购买数量产品单价产品总价操作{{msg.bh}}{{msg.mc}}-+{{msg.dj}}{{msg.count*msg.dj}}总价:{{all()}}购买数量:{{allnum()}}商品编号: 产品名称: 购买数量: 产品单

2018-03-05 09:31:18 342

原创 Android+动画+详情+购物车

1:依赖:compile 'com.google.code.gson:gson:2.6.1'compile 'com.youth.banner:banner:1.4.10'compile 'com.squareup.okhttp3:okhttp:3.1.2'compile 'com.squareup.okhttp3:logging-interceptor:3.9.0'compile

2017-12-20 19:50:45 618

原创 二级列表购物车okhttp(完整版)

1:首先导入依赖compile 'com.squareup.okhttp3:okhttp:3.9.0'compile 'com.squareup.okhttp3:logging-interceptor:3.9.0'compile 'com.google.code.gson:gson:2.8.2'compile 'com.nostra13.universalimageloader:un

2017-12-19 15:37:27 356

原创 实现淘宝购物车功能

数据接口:http://result.eolinker.com/iYXEPGn4e9c6dafce6e5cdd23287d2bb136ee7e9194d3e9?uri=evaluation1:导入依赖compile 'com.squareup.okhttp3:okhttp:3.9.0'compile 'com.squareup.okhttp3:logging-intercep

2017-12-17 21:15:48 3579

原创 recycleview

uses-permission android:name="android.permission.INTERNET" />compile 'com.android.support:recyclerview-v7:26.0.0-alpha1'compile 'com.squareup.okhttp3:okhttp:3.9.0'compile 'com.squareup.okio:

2017-12-11 08:22:35 244

原创 自定义view圆圈进度条

实现自定义view和进度条的内容1:首先需要两个布局分别写标题 和内容 然后需要一个类来加载这个页面 然后主界面分别加载这些布局 如下:title布局:ImageView android:id="@+id/img" android:layout_width="wrap_content" android:layout_hei

2017-12-03 20:52:26 225

原创 Canvas常用的方法

drawRect(RectF rect, Paint paint) //绘制区域,参数一为RectF一个区域drawPath(Path path, Paint paint) //绘制一个路径,参数一为Path路径对象drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint)//贴图,参数一就是我们常规的Bitmap对象,

2017-11-30 17:00:53 685

原创 梳理

JavaScript            angular-----JavaScript/jQuery               做单页面程序               逻辑代码:                   1.指令 (事件,初始化数据,定义应用的名字)                      ng-app指定应用名字              

2017-11-20 17:53:21 237

原创 ThridExam

周考3                                        h3 {            text-align: center;        }                input {            border-radius: 5px;        }                select

2017-11-20 16:07:06 210

原创 最新总结

周考                    * {                padding: 0;                margin: 0;            }                        .a {                width: 100%;                height: 1000px;  

2017-11-06 10:19:06 188

原创 TabLayout标题按钮

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

2017-10-24 11:16:16 604

原创 ListAdapter

********布局*********RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> ImageView

2017-10-24 11:05:17 231

原创 Pull分页上下拉+头部Banner

BlankFragment布局LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"

2017-10-24 11:01:10 240

原创 连网判断+土司

1.+权限2.编写NetUtilsimport android.app.Activity;import android.content.Context;import android.net.ConnectivityManager;import android.net.NetworkInfo;public class NetUtils { publ

2017-10-24 10:53:19 196

原创 常用布局

1:顶部横向拉动和页面切换布局    android:id="@+id/tab"    android:layout_width="match_parent"    android:layout_height="0dp"    android:layout_weight="1"    />    android:id="@+id/vp"    android

2017-10-24 09:39:00 183

原创 FrameLayout+底部按钮

1.在drawable下创建selector类selector xmlns:android="http://schemas.android.com/apk/res/android"> item android:state_checked="true" android:drawable="@color/colorBlue">item> item android:state_c

2017-10-24 09:02:49 3686

原创 DrawerLayout侧拉

布局android.support.v4.widget.DrawerLayout    android:id="@+id/drawerLayout"    xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:app="http://schemas.android.com/apk/res-auto

2017-10-22 19:31:57 207

原创 Banner自动轮播

banner使用步骤 1---添加依赖  compile 'com.youth.banner:banner:1.4.9' //最新版本 2--- 添加权限    *     *3---添加布局      xmlns:app="http://schemas.android.com/apk/res-auto"  android:id="@+id/banner"

2017-10-22 19:28:52 230

原创 PullToRefreshListView

import android.os.AsyncTask;import android.support.v7.app.AppCompatActivity;import android.os.Bundle;import android.widget.ArrayAdapter;import android.widget.ListView;import com.handmark.p

2017-10-20 08:29:45 183

原创 MAsynctask

class MAsynctask extends AsyncTask { @Override protected String doInBackground(String... strings) { // Log.e("TAG", strings[0] + "王新杰"); return HttpUrlConnection.getJson(stri

2017-10-15 18:54:20 271

原创 MApp图片加载

public class MApp extends Application { @Override public void onCreate() { super.onCreate(); ImageLoaderConfiguration imageLoaderConfiguration = new ImageLoaderConfiguration.B

2017-10-15 18:26:17 287

原创 HttpUrlConnection 网络连接

public class HttpUrlConnection { public static String getJson(String urldata) { try { URL url = new URL(urldata); HttpURLConnection httpurlConnection = (HttpURLCo

2017-10-15 18:25:20 349

原创 XListView

XListView需要设置的两句话xListView.setXListViewListener(this);xListView.setPullLoadEnable(true);布局android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" x

2017-10-15 18:15:15 193

转载 android官方侧滑菜单DrawerLayout详解

DrawerLayout是Support Library包中实现了侧滑菜单效果的控件,可以说drawerLayout是因为第三方控件如MenuDrawer等的出现之后,google借鉴而出现的产物。drawerLayout分为侧边菜单和主内容区两部分,侧边菜单可以根据手势展开与隐藏(drawerLayout自身特性),主内容区的内容可以随着菜单的点击而变化(这需要使用者自己实现)。draw

2017-10-12 10:59:07 290

原创 多条目加载

MApp类import android.app.Application;import com.nostra13.universalimageloader.core.ImageLoader;import com.nostra13.universalimageloader.core.ImageLoaderConfiguration;/** * author:Created

2017-10-11 08:37:52 233

原创 常用权限和依赖

# android常用配置常用权限常用依赖butterknife compile ‘com.jakewharton:butterknife:8.8.1’ annotationProcessor ‘com.jakewharton:butterknife-compiler:8.8.1’imageloadercompile 'com.nostra13.univers

2017-10-10 11:26:01 412

原创 imageloader工具类

MApp类import android.app.Application;import android.util.Log;import com.nostra13.universalimageloader.cache.disc.naming.Md5FileNameGenerator;import com.nostra13.universalimageloader.cache.m

2017-10-10 08:08:54 229

原创 HttpClient请求连接网络

import android.util.Log;import org.apache.http.HttpEntity;import org.apache.http.HttpResponse;import org.apache.http.client.methods.HttpGet;import org.apache.http.impl.client.DefaultHttpClie

2017-10-09 08:05:02 342

空空如也

空空如也

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

TA关注的人

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