- 博客(52)
- 收藏
- 关注
原创 订单
订单布局LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> LinearLayout android:layout_width="match_parent" android:l
2018-01-19 13:09:34
319
转载 视频播放器
依赖compile 'fm.jiecao:jiecaovideoplayer:5.5'在清单文件中配置,哪个Activity用,就加到哪里 android:configChanges="orientation|screenSize|keyboardHidden" android:screenOrientation="portrait">xml控件 android:id="@+id
2018-01-19 08:53:56
265
原创 依赖
compile 'com.facebook.fresco:fresco:0.14.0' //ButterKnife依赖 compile 'com.jakewharton:butterknife:8.4.0' apt 'com.jakewharton:butterknife-compiler:8.4.0' /*5.0新控件的依赖*/ compile 'com.android.
2018-01-17 20:52:10
265
原创 工具类
//bean包//购物车import java.util.List; /** * Created by dell on 2018/1/8. */ public class MyDateGouWU { /** * msg : 请求成功 * code : 0 * data : [{"list":[{"bargainPrice":22.9,"createt
2018-01-17 20:33:27
592
原创 购物车
//登陆//布局 android:layout_width="match_parent" android:background="#ffffff" android:layout_height="match_parent"> LinearLayout android:layout_width="match_parent" android:lay
2018-01-17 20:16:36
327
原创 购物车工具类
工具类 bean包 import java.util.List; /** * Created by dell on 2018/1/8. */ public class MyDateGouWU { /** * msg : 请求成功 * code : 0 * data : [{"list":[{"bargainPrice":22.9,"createtime":"2017-10-
2018-01-17 20:00:33
230
原创 封装网络请求框架
import android.os.Environment; import java.io.File; import java.io.IOException; import java.util.HashMap; import java.util.Map; import java.util.concurrent.TimeUnit; import okhttp3.Cache; import okh
2018-01-14 20:32:58
218
原创 Retrofit购物车
//工具类 import java.util.List; /**购物车 * Created by dell on 2018/1/8. */ public class MyDateGouWU { /** * msg : 请求成功 * code : 0 * data : [{"list":[{"bargainPrice":22.9,"cre
2018-01-14 20:20:26
767
原创 封装retrofit+okhttp+rxjava
import android.os.Environment; import java.io.File; import java.io.IOException; import java.util.HashMap; import java.util.Map; import java.util.concurrent.TimeUnit; import okhttp3.Cache; import okh
2018-01-08 20:13:20
352
转载 rxjava
//使全局就一个Retrofit对象,设置基础Url public static ApiService apiService = new Retrofit.Builder() .baseUrl("http://qbh.2dyt.com") //使我们能高度自定义转化器 .addConverterFactory(ScalarsConverterFact
2018-01-07 19:29:18
211
转载 fresco
//加载进度条 Uri uri = Uri.parse("http://assets.kgc.cn/upload/openteacher/20160831/1472636067718985.jpg"); //创建Builder对象,一般创建出参数对象 GenericDraweeHierarchyBuilder builder = new Generi
2017-12-28 09:36:22
240
转载 frecso加载进度
//所要加载图片的网址 Uri uri = Uri.parse("http://assets.kgc.cn/upload/openteacher/20160831/1472636067718985.jpg"); //创建Builder对象,一般创建出参数对象 GenericDraweeHierarchyBuilder builder = new GenericDraweeHierarchyBuil
2017-12-26 10:22:45
261
转载 OkHTTP二次封装加拦截器
/** * 懒汉 安全 加同步 * 私有的静态成员变量 只声明不创建 * 私有的构造方法 * 提供返回实例的静态方法 */ private static OkHttpClient okHttpClient = null; private NetWorkOkHttp() { } public static OkHttpClient getInstance() { if (ok
2017-12-21 10:36:17
281
转载 动画
int x=300; //translationY平移Y轴 //translationX平移X轴 //rotation上下旋转 TranslateAnimation t = new TranslateAnimation(0, 200, 0, 0);//设置动画的偏移位移 TranslateAnimation t
2017-12-21 09:12:14
184
原创 订单
//适配器 /** * Created by dell on 2017/12/19. */ public class DingDanRecy extends BaseAdapter { Context context; List data; public DingDanRecy(Context context, List data) { th
2017-12-20 15:48:07
261
原创 购物车工具类
/**添加商品 * Created by dell on 2017/12/18. */ public class MyDeteAdd { /** * msg : 加购成功 * code : 0 */ private String msg; private String code; public String getMsg()
2017-12-20 15:37:02
274
原创 购物车布局+代码
//布局文件 LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> LinearLayout android:layout_width="
2017-12-20 09:28:30
614
转载 布局
android:layout_above="@+id/linear_layout" android:layout_width="match_parent" android:layout_height="match_parent"> android:orientation="vertical"
2017-12-18 08:15:29
165
转载 购物车
//网络判断 CommonUtils { public static final String TAG = "Dash";//sp文件的xml名称 private static SharedPreferences sharedPreferences; /** * DashApplication.getAppContext(
2017-12-18 08:09:51
166
转载 网路状态判断
/** 没有网络 */ public static final int NETWORKTYPE_INVALID = 0; /** wap网络 */ public static final int NETWORKTYPE_WAP = 1; /** 2G网络 */ public static final int NETWORKTYPE_2G = 2; /** 3G和3G以上网络,或统称为快速网络 */
2017-12-17 18:50:46
248
转载 拦截器OKhttp
/** * 懒汉 安全 加同步 * 私有的静态成员变量 只声明不创建 * 私有的构造方法 * 提供返回实例的静态方法 */ private static OkHttpClient okHttpClient = null; private OkHttp3Util() { } p
2017-12-16 08:42:15
217
翻译 okhttp封装11111111
/** * 懒汉 安全 加同步 * 私有的静态成员变量 只声明不创建 * 私有的构造方法 * 提供返回实例的静态方法 */ private static OkHttpClient okHttpClient = null; public static OkHttpClient getInstance() { if (o
2017-12-11 11:05:42
231
转载 封装OkHttp
/** * 懒汉 安全 加同步 * 私有的静态成员变量 只声明不创建 * 私有的构造方法 * 提供返回实例的静态方法 */ private static OkHttpClient okHttpClient = null; private OkHttp3Util() { } p
2017-12-09 08:54:58
331
转载 安卓6.0动态获取权限
//用于获取安卓6.0以上API23以上动态权限 if(ContextCompat.checkSelfPermission(MainActivity.this, Manifest.permission.READ_EXTERNAL_STORAGE)!= PackageManager.PERMISSION_GRANTED){ ActivityCompat.requestPermissions(
2017-11-29 18:20:28
235
原创 angularjs查询删除 过滤敏感信息
thead tr{background:#424242;} tbody tr:nth-child(odd){background:#778899;} tbody tr:nth-child(even){background:#A4D3EE;} tbody tr:hover{background:#33FFFF ;} var app=angular.module("myapp",[
2017-11-23 11:12:44
320
原创 angularjs购物车
tbody tr:nth-child(even){ background: aqua; } tbody tr:nth-child(odd){ background: aliceblue; } thead tr{ background: #474747; } var app=angular.module("myapp",[]); app.fil
2017-11-22 15:36:04
291
原创 jQUery表单删除
$(function(){ var b=false; var b1=false; var b2=false; var b3=false; var b4=false; var sheng1=""; var shi1=""; var name1=""; var tel1=""; var em1=""; $("#name").blur(function(){ v
2017-11-11 11:01:13
1114
原创 使用PullToRefreshScrollView
//PullToRefreshScrollView布局文件 com.handmark.pulltorefresh.library.PullToRefreshScrollView xmlns:ptr="http://schemas.android.com/apk/res-auto" android:id="@+id/refresh_scroll_view" androi
2017-10-20 18:41:16
336
原创 sqlite
//创建数据库 public class sql extends SQLiteOpenHelper{ public sql(Context context) { super(context, "shuju", null, 2); // TODO Auto-generated constructor stub } @Override public v
2017-10-20 18:30:18
192
转载 PullToRefreshGridView
//控件:gridView com.handmark.pulltorefresh.library.PullToRefreshGridView android:id="@+id/plv" xmlns:ptr="http://schemas.android.com/apk/res-auto" android:layout_height="match_parent"
2017-10-18 20:19:27
199
转载 PullToRefreshGridView
控件:GridView com.handmark.pulltorefresh.library.PullToRefreshGridView android:id="@+id/plv" xmlns:ptr="http://schemas.android.com/apk/res-auto" android:layout_height="match_parent"
2017-10-18 20:02:37
252
转载 PullToRefreshListView
控件:ListView com.handmark.pulltorefresh.library.PullToRefreshListView android:id="@+id/plv" xmlns:ptr="http://schemas.android.com/apk/res-auto" android:layout_height="match_parent" and
2017-10-18 19:59:47
275
原创 TabLayout
LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="m
2017-10-18 16:28:08
246
转载 ImgHOLder
/ ** * 配置信息 * */ public static void Stap(Context cex){ File file = new File(Environment.getExternalStorageDirectory(),"image");//缓存文件夹路径 if(!file.exists()){ file.mkdir(); }
2017-10-18 14:44:04
210
原创 网络[计][通信] network Http url网络解析
public static void newUrl(Context context, final String path, final JieKou fie){ if(WangLuo.isConn(context)){ Toast.makeText(context,"网络已连接",Toast.LENGTH_SHORT).show(); AsyncTask
2017-10-18 14:41:10
345
转载 网络[通信] network判断
//网络判断 /** * @author Dash * @date 2017/9/27 * @description: * * 如果要使用网络状态的判断,需要权限....uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> */ /** * 这个方法是判断网络状态是否可用的
2017-10-18 14:39:08
342
原创 底部导航栏
//文字颜色 selector xmlns:android="http://schemas.android.com/apk/res/android"> item android:state_checked="true" android:color="#3F51B5"/> item android:state_checked="false" android:color="#8f8f
2017-10-18 14:26:17
264
转载 网络工具类
//网络判断 import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.net.ConnectivityManager; import andro
2017-10-16 19:59:20
276
转载 网络判断
/** * 这个方法是判断网络状态是否可用的 * @param context * @return */ public static boolean isConn(Context context){ boolean bisConnFlag=false; //1.获取网络连接的管理对象 ConnectivityManager conManager = (Connect
2017-10-16 18:53:50
196
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅