- 博客(8)
- 收藏
- 关注
转载 购物
购物子package com.example.democart.adpter;import android.content.Context;import android.support.annotation.NonNull;import android.support.v7.widget.RecyclerView;import android.view.LayoutInflater;...
2019-01-20 12:03:09
139
原创 自定义view绘制圆点
继承Viewpublic class MyView extends View {private Paint mPaint;//画笔private int circleX;//圆的x轴起始坐标private int circleY;//圆的y轴起始坐标private int mRaduis = 100;//圆半径,pxprivate int mColor = Color.RED;...
2019-01-20 09:10:33
447
原创 多条目
A dpterpublic class ProAdpter extends XRecyclerView.Adapter<XRecyclerView.ViewHolder>{ private final int TYPE_ONE=0; private final int TYPE_TWO=1; private final int TYPE_THREE=...
2019-01-19 19:34:30
120
原创 流式布局
流式布局/** * 请输入关键词 */private EditText mSearchName;/** * 搜索 */private Button mSearch;private TagFlowLayout mTaglayout; private List<String> strings; @SuppressLint("HandlerLeak") priva...
2019-01-19 15:08:34
115
原创 okttp基本封装
> private Handler handler = new Handler() ; private OkHttpClient okHttpClient; private static OkhttpUtils mInstance;//私有属性 private OkhttpUtils() {//私有构造方法 HttpLoggingInter...
2019-01-06 20:57:56
211
原创 添加头部视图
INfoAdpterr @Override protected void initView(View view) { page=1; lv = view.findViewById(R.id.lv); lv.setMode(PullToRefreshBase.Mode.BOTH); adpter = new Info...
2018-12-20 20:52:06
157
原创 数据库添加
添加到数据库`private MyActivity myActivity;private int page;private String aurString = “http://www.xieast.com/api/news/news.php?page=”;private PullToRefreshListView pullto;private UserDao userDao;pr...
2018-12-20 16:52:23
144
原创 Banner
Banner private FlyBanner banner; private String iconApi="http://www.zhaoapi.cn/quarter/getAd"; private List<String> list; @Override protected void initData() { } ...
2018-12-19 15:36:45
72
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人