自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 api

//首页@GET("small/commodity/v1/commodityList")Observable<Shops> ShopRx();//商品详情@GET("small/commodity/v1/findCommodityDetailsById")Observable<DetailBean> ShopDetail(@Header("userId") i...

2019-01-20 13:52:17 146

原创 oooo

购物车 主布局<com.jcodecraeer.xrecyclerview.XRecyclerViewandroid:id="@+id/xrv_cart"android:layout_width=“match_parent”android:layout_height=“0dp”android:layout_weight=“9”></com.jcodecraeer.x...

2019-01-20 11:38:34 1037

原创 嵌套购物车

http://www.zhaoapi.cn/product/getCarts?uid=71Adapterpublic class MyAdapter extends BaseExpandableListAdapter{List<CartInfo.DataBean> sellerData;Context context;public MyAdapter(Lis...

2019-01-20 11:05:03 123

原创 生成greendao

apply plugin: ‘org.greenrobot.greendao’ // apply plugingreendao {//数据库的schema版本,也可以理解为数据库版本号schemaVersion 1//设置DaoMaster、DaoSession、Dao包名,也就是要放置这些类的包的全路径。daoPackage ‘com.bw.mzlunbo.core.db’//设置D...

2019-01-20 09:12:04 171

原创 Bugly集成

Bugly集成implementation ‘com.tencent.bugly:crashreport:latest.release’CrashReport.initCrashReport(getApplicationContext(), “注册时申请的APPID”, false);建议在测试阶段建议设置成true,发布时设置为false。...

2019-01-18 11:59:53 127

原创 .多个

public void onSuccessRx(Shops shops) {if (shops!=null){Shops.ResultBean resultBean=shops.getResult();List<Shops.ResultBean.RxxpBean> rxshop=resultBean.getRxxp();List<Shops.ResultBean.Rxxp...

2019-01-01 20:51:52 99

原创 截取图片

public class Img { public static String getImg(String images) { String[] a = images.split("\\|"); return a[0]; } public static String setImg(String images) { String...

2018-12-28 19:00:10 121

原创 retrofit网络请求

RetrofitApi放接口public interface RetrofitApi {@POST("product/searchProducts")@FormUrlEncodedObservable<Shop> shopRx(@Field("keywords") String keywords, @Field("page") int pag

2018-12-28 18:46:28 136

原创 高德地图

导入权限 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /><!-- 允许程序获取网络状态 --><uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />&lt...

2018-12-21 07:56:36 150

原创 gridview 适配器

public class HomeGridAdapter extends BaseAdapter{private Context mContext;private List<ShopBean.DataBean> mList;public HomeGridAdapter(Context context, List<ShopBean.DataBean> list) { ...

2018-12-20 20:03:55 261

原创 HttpUtils

public class HttpUtils {private static volatile HttpUtils instance;private OkHttpClient client;private Handler handler=new Handler();private HttpUtils(){ client=new OkHttpClient();}public ...

2018-12-20 19:18:45 107

原创 麦当当购物车

R.layout.car_fragment布局<?xml version="1.0" encoding="utf-8"?><LinearLayout android:layout_width="match_parent" android:layout_height="0dp" android:orientation="horizontal&quot

2018-12-20 12:00:32 241

原创 九宫格网络请求数据

写在fragment里面R.layout.home_fragment.xml布局<GridView android:id="@+id/grid_view" android:layout_width="match_parent" android:layout_height="200dp" android:numColumns="3"></Gr...

2018-12-20 11:48:36 447 1

原创 轮播图

activity_main.xml布局<?xml version="1.0" encoding="utf-8"?><com.recker.flybanner.FlyBannerandroid:id="@+id/banner"android:padding=“15dp”android:layout_width=“match_parent”android:layout...

2018-12-10 08:22:53 104

原创 轮播图

mainactivity_xml布局<?xml version="1.0" encoding="utf-8"?><!--轮播图的RecyclerView布局--><android.support.v7.widget.RecyclerView android:id="@+id/img_rcv" android:layout_width="matc.

2018-12-03 08:22:17 130

原创 首页 分类 购物车

圆形搜索框 main_activity.xml布局(这是fragment) <TextView android:id="@+id/show" android:layout_width="0dp" android:layout_height="wrap_content"

2018-11-22 10:13:12 430

原创 购物车

main_activity.xml布局<?xml version="1.0" encoding="utf-8"?>mainactivity页面package com.umeng.soexample.shopcat01;import android.support.v7.app.AppCompatActivity;import androi

2018-11-21 09:53:29 146

原创 shap圆角

<corners android:radius="20dp"/><stroke android:width="2dp" android:color="#cfd2d4"/>

2018-11-19 16:42:30 164

原创 搜索框

2018-11-19 08:01:09 127

原创 QQ第三方登录

activity_main页面<?xml version="1.0" encoding="utf-8"?><android.support.constraint.ConstraintLayout xmlns:android=“http://schemas.android.com/apk/res/android”xmlns:app=“http://schemas.andro...

2018-11-19 07:46:39 226

原创 MVP OKHttp RecycleView 显示数据

activity_xml布局<?xml version="1.0" encoding="utf-8"?><LinearLayout android:layout_width="match_parent" android:background="#aaa"

2018-11-17 10:41:06 148

原创 login

布局<?xml version="1.0" encoding="utf-8"?>mainactivity页面package bw.com.loginsyx;import android.app.ProgressDialog;import android.support.v7.app.AppCompatActivity;import android.os...

2018-11-12 08:27:48 140

原创 扫描二维码 生成二维码

mainactivity.xml布局<?xml version="1.0" encoding="utf-8"?><Button android:id="@+id/btnSan" android:layout_width="match_parent" android:layout_height="wrap_content" andr

2018-11-07 19:48:52 202

原创 toolbar 轮盘抽奖

创建自定义控件 Choupackage com.example.lenovo.lunban;import android.content.Context;import android.graphics.Canvas;import android.graphics.Color;import android.graphics.Paint;import android.graphics.P...

2018-11-04 20:50:35 111

原创 封装

封装activitypackage com.example.lenovo.a06syxweek03.base;import android.os.Bundle;import android.support.annotation.Nullable;import android.support.v7.app.AppCompatActivity;/**Created by lenovo o...

2018-10-25 20:34:31 109

原创 延时跳转

package com.example.lenovo.a06moni03;import android.app.Activity;import android.content.Intent;import android.os.Handler;import android.os.Message;import android.support.v7.app.AppCompatActivity;...

2018-10-25 19:03:40 305

原创 抽屉 fragment tablayout 轮播图 显示数据 点击跳转

activity_main.xml布局<?xml version="1.0" encoding="utf-8"?><android.support.v4.widget.DrawerLayout xmlns:android=“http://schemas.android.com/apk/res/android”xmlns:app=“http://schemas.android...

2018-10-25 10:43:06 222

原创 抽屉 加 主页面显示数据

activity_main.xml布局 (整体布局)<?xml version="1.0" encoding="utf-8"?><android.support.v4.widget.DrawerLayout xmlns:android=“http://schemas.android.com/apk/res/android”android:id=&quo

2018-10-23 10:37:04 396

原创 抽屉

activity_xml 布局<?xml version="1.0" encoding="utf-8"?><android.support.v4.widget.DrawerLayout xmlns:android=“http://schemas.android.com/apk/res/android”xmlns:app=“http://schemas.android.com...

2018-10-20 08:51:17 139

原创 今日头条页面 TabLayout

导包activity_xml布局<?xml version="1.0" encoding="utf-8"?><RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content&

2018-10-18 18:55:18 500

原创 点击 加 fragment

布局<?xml version="1.0" encoding="utf-8"?><RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content"> <ImageView android:id=&quot

2018-09-25 08:20:44 216

原创 抽屉

MainActivity页面布局<?xml version="1.0" encoding="utf-8"?><android.support.v4.widget.DrawerLayout xmlns:android=“http://schemas.android.com/apk/res/android”android:id="@+id/dl"android:layout_...

2018-09-21 13:31:58 203

原创 上滑动 下加载网页

mainactivity布局<?xml version="1.0" encoding="utf-8"?><RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content"><android.support.design.wid

2018-09-20 20:32:10 134

原创 多条目

多 tiaomu**## 多多MainActivity页面**public class MainActivity extends AppCompatActivity {private XListView list_view;private List<News.DataBean> list;private NewsAdapter adapter;private int...

2018-09-20 13:47:55 92

空空如也

空空如也

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

TA关注的人

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