- 博客(22)
- 收藏
- 关注
原创 Retrofit的工具类
package com.example.gjl.day09_mvp_retrofit_rxjava.http;import com.google.gson.Gson;import retrofit2.Retrofit;import retrofit2.adapter.rxjava.RxJavaCallAdapterFactory;import retrofit2.converter.g...
2018-06-01 08:15:00 182
转载 jc
String videouri = list.get(position).getVideouri(); holder.js.setUp(videouri,list.get(position).getText()); holder.js.release();
2018-06-01 08:04:15 894
原创 购物车的Bean包
public class ShoppingBean { private String msg; private String code; private List<DataBean> data; public String getMsg() { return msg; } public void setMsg(S...
2018-05-31 21:10:02 235 1
转载 第三方流式布局
//布局 <com.example.library.AutoFlowLayout android:layout_below="@id/resou" android:layout_width="match_parent" android:layout_height="wrap_content" ...
2018-05-31 21:08:41 270
转载 Android 一个简单的购物车
主页面的布局文件<ExpandableListView android:id="@+id/exp_listview" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" ...
2018-05-31 19:12:38 590
原创 RecylerView的条目点击事件
//RecylerView的条目点击事件 public interface MyItemClickListener { void onItemClick(View view, int pid); } //外部可以访问的方法 public void setOnMyItemClick(MyItemClickListener onMyItemClick) {
2018-05-04 08:23:16 219
原创 搜索流式布局
布局文件<?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://sche
2018-05-03 20:55:57 179
原创 OKHttpUtils
package com.example.gjl.day01_okhttputils.utils;import android.os.Handler;import android.os.Message;import android.util.Log;import java.io.File;import java.io.IOException;import java.util.Map;impo
2018-05-03 14:09:29 331
原创 android开发购物车
//购物车布局文件--------------------------------------------------------<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" xmlns:app="http://schem
2018-05-03 14:07:06 192 1
转载 京东分类
Xml文件<ListView android:id="@+id/left_listview" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" /> <ListView
2018-05-03 13:55:18 178
原创 RetrofitUtil
package com.example.gjl.day07_xiawu.http;import android.util.Log;import com.google.gson.Gson;import java.io.IOException;import okhttp3.FormBody;import okhttp3.Interceptor;import okhttp3.OkHt...
2018-03-29 08:28:32 232
转载 OkHttpUtils
package com.example.gjl.day01_okhttputils.utils;import android.os.Handler;import android.os.Message;import android.util.Log;import java.io.File;import java.io.IOException;import java.util.Map;impo
2018-03-16 16:00:07 244
原创 RecyclerView的适配器
package com.example.administrator.recyclerview;import android.content.Context;import android.support.v7.widget.RecyclerView;import android.view.View;import android.view.ViewGroup;import android.wi
2018-03-16 15:57:03 121
原创 一个简单的表单验证
<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> </head> <script src="js/jquery-3.2.1.min.js" type="text/javascript"></script> <style type="text/css">
2018-01-07 19:53:08 898
原创 html+jquery
<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <script src="js/jquery-3.2.1.min.js"></script> <style> table { border
2018-01-07 19:50:13 343
原创 HTML5的动画
@-webkit-keyframes name { from { transform: rotate(360deg); } 10% { transform: rotate(324deg); } 20% {
2018-01-02 08:25:31 227
原创 XListView的应用
xlv.setPullRefreshEnable(true); xlv.setPullLoadEnable(true); xlv.setXListViewListener(new XListView.IXListViewListener() { @Override public void onRefresh() {
2017-12-21 09:31:46 193
原创 viewpager+Handler自动无限轮播
首先是布局页面<?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="mat
2017-12-19 16:09:43 671
原创 手机基本支持的传感器类型
加速度传感器(accelerometer)、 陀螺仪(gyroscope)、 环境光照传感器(light)、 磁力传感器(magnetic field)、 方向传感器(orientation)、 压力传感器(pressure)、 距离传感器(proximity)、 温度传感器(temperature)。
2017-12-19 15:51:39 496
原创 一个简单的网络判断的方法
首先是Utile工具类 如果返回的值是-1(没有网络)public static int getNetype(Context context) { int netType = -1; ConnectivityManager connMgr = (ConnectivityManager) context.getSystemService(Context.CONNECT
2017-12-19 15:33:59 268
原创 TabLayout横向滑动菜单
在TabLayoutFragment中的代码 private TabLayout draw; private ViewPager pager2; private List<String> list = new ArrayList<>(); @Nullable @Override public View onCreateView(LayoutInflater in
2017-12-19 14:42:08 424
转载 ImageLoader获取网络数据图片
package animtest.com.example.e531.imageloader_demo2;import android.os.AsyncTask; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.
2017-11-14 14:54:05 2523
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人