自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 展示

展示列表的接口 public static final String SHOPPING_URL = “http://www.zhaoapi.cn/product/getCarts?uid=71”; 接口回调 //V层 public interface IHomeView { //回显数据 public void showData(NewsBean reps...

2019-01-01 20:30:58 156

原创 九宫格

九宫格 接口 public static final String GRIDEURL=“http://www.zhaoapi.cn/product/getCatagory”; Activity @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInsta...

2019-01-01 20:26:38 241

原创 饿了么购物车

MainActivity public class MainActivity extends AppCompatActivity implements DataCall { String url = "http://www.zhaoapi.cn/product/getCarts?uid=71"; private ListView listView01; private L...

2018-12-21 10:14:28 486

原创 购物车界面

Adapter public class ShopAdapter extends BaseExpandableListAdapter { private List<Shop.DataBean> shopData; private double price; private int num; public ShopAdapter(List<Shop...

2018-12-20 19:40:27 381

原创 扫描二维码

MainActivity public class MainActivity extends AppCompatActivity implements QRCodeView.Delegate{ private QRCodeView mQRCodeView; @Override protected void onCreate(Bundle savedInstanceStat...

2018-12-20 15:44:39 129

原创 日志拦截器

自定义一个类实现 package com.example.interceptor; import android.util.Log; import java.io.IOException; import okhttp3.Interceptor; import okhttp3.Request; import okhttp3.Response; import okhttp3.Respons...

2018-12-20 15:25:29 103

原创 高德地图图片版

MainActivity public class MainActivity extends AppCompatActivity implements LocationSource,AMapLocationListener { private static final String TAG = "TestLocation"; private TextView location =...

2018-12-20 15:21:59 461

原创 购物车

HttpUtils public class DataUtils { private final Handler handler; private final OkHttpClient httpClient; private static DataUtils mHttpUtils; private DataUtils(){ //创建主线程的hand...

2018-12-20 09:59:24 142

原创 切换

MyApp public class MyApp extends Application { private static Context context; @Override public void onCreate() { context=this; super.onCreate(); } public stati...

2018-12-16 18:46:58 132

原创 多条目适配器

适配器 public class LinearAdapter extends RecyclerView.Adapter<LinearAdapter.VH> { private ClickListener clickListener; private Context context; public LinearAdapter(C...

2018-12-15 08:57:52 152

原创 XRecyclerView+上拉加载+下拉刷新

MyApp public class MyApp extends Application { private static Context context; @Override public void onCreate() { context=this; super.onCreate(); } public stati...

2018-12-15 08:55:57 216

原创 轮播图

MainActivity public class Fragment01 extends Fragment { private View view; @Nullable @Override public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container...

2018-12-14 10:27:57 121

原创 相机

布局 Button android:id="@+id/paizhao" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="拍照上传头像" /> Button andr...

2018-12-14 10:08:02 121

原创 OkHttp登录

Bean类 public class User { private String msg; private String code; public String getMsg() { return msg; } public void setMsg(String msg) { this.msg = msg; } ...

2018-12-14 10:03:59 677

原创 瀑布布局

PubuActivity public class PubuActivity extends AppCompatActivity { private RecyclerView recyclerView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreat...

2018-12-12 14:47:09 264

原创 线性布局

依赖 implementation 'com.github.bumptech.glide:glide:4.8.0' implementation 'com.android.support:recyclerview-v7:28.0.0' LinerActivity public class LinerActivity extends AppCompatActivity { ...

2018-12-12 14:40:58 146

原创 布局

public class MainActivity extends AppCompatActivity { private RecyclerView recyclerView; private Button linear; private Button grid; private Button stagger; @Override protected void onCreate(Bundle sa...

2018-12-12 08:59:34 103

原创 增删改查

查询: 排序: –请选择– –名称倒叙– –名称正序...

2018-07-27 17:41:58 117

空空如也

空空如也

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

TA关注的人

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