自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 商品购物车 商品 适配器

public class GoodAdapter extends RecyclerView.Adapter<GoodAdapter.ViewHolder> { private Context context; private List<ShopBean.DataBean.SpusBean> list; private int parentPositi...

2019-04-06 20:26:48 1229 2

原创 全反选计算价格 总数

@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); //在需要接受事件的类中进行注册 EventBus...

2019-04-06 20:25:18 244

原创 商品加减器

public class SubAddButton extends LinearLayout { private View view; private TextView tvSub,tvNub,tvAdd; private OnNumChangedListener numChangedListener; //new调用 public SubAdd...

2019-04-06 20:21:59 214

原创 流式布局

流式布局public class FlowLayout extends ViewGroup { public FlowLayout(Context context) { super(context); } public FlowLayout(Context context, AttributeSet attrs) { super(cont...

2019-04-06 20:18:34 187

原创 多条目

``多条目`@NonNull@Overridepublic XRecyclerView.ViewHolder onCreateViewHolder(@NonNull ViewGroup viewGroup, int i) {View view;if (iBANNER_TYPR){view= LayoutInflater.from(context).inflate(R.layout.x...

2019-04-01 08:14:22 181

原创 OKhttp

package com.bwie.week.http;import android.net.NetworkInfo;import android.os.Environment;import android.os.Handler;import android.util.Log;import com.google.gson.Gson;import java.io.File;impo...

2019-03-31 20:04:53 251

原创 Recycler适配器

package com.bwie.week.adapter;import android.content.Context;import android.support.annotation.NonNull;import android.support.v7.widget.RecyclerView;import android.view.LayoutInflater;import and...

2019-03-31 20:02:51 312

原创 Sql语句

package com.bwie.sql;import android.content.Context;import android.database.sqlite.SQLiteDatabase;import android.database.sqlite.SQLiteOpenHelper;/** * @Author:余振华 * @E-mail: 15001194794@163.c...

2019-03-01 16:08:57 169

原创 帧布局和Fragment的显示

&lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http:

2019-03-01 16:08:03 522

原创 抽基类

BaseActivitypublic abstract class BaseActivity extends FragmentActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); se...

2019-03-01 16:00:50 238

空空如也

空空如也

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

TA关注的人

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