- 博客(13)
- 收藏
- 关注
原创 Banner轮播(CardBanner实现)
在顶部设置一个容器存储数据private List<ImageData> listbanner = new ArrayList<>();解析Gson gson = new Gson();BannerBean bannerBean = gson.fromJson(seeces, BannerBean.class);List<BannerBean.R...
2019-10-29 11:23:19 287
原创 fresco外部缓存和渐进式加载图片
外部缓存public class MyFresco extends Application { Context context; @Override public void onCreate() { super.onCreate(); context = this; Fresco.initialize(this,Image...
2019-10-29 11:20:13 288
原创 二级联动(分类联动)
activity布局<?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:t...
2019-10-29 08:49:17 725
原创 购物车·二
购物车内部布局<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" xmlns:fresco="http://schemas....
2019-10-28 20:25:17 87
原创 多条目展示+WebView
recycleView布局<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="wra...
2019-10-28 20:18:49 113
原创 订单
订单内部布局<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_pare...
2019-10-28 20:10:39 125
原创 购物车(全选·反选·价格联动)
Activity或者是fragment中最外层的checkbox点击之后全选商家和商品的所有复选框//点击复选框进行全选操作checkqb.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { if (checkqb.isChecked(...
2019-10-28 14:51:43 437
原创 自定义加减器
public class MyView extends LinearLayout { private final Button jian; private final TextView sl; private final Button jia; private int zsl = 0; public MyView(final Context contex...
2019-10-28 14:43:50 82
原创 自定义View-实现流式布局
public class MyView extends ViewGroup {int zuo=20;int shang=20;public MyView(Context context, AttributeSet attrs) {super(context, attrs);}@Overrideprotected void onLayout(boolean changed, int l...
2019-09-24 12:00:18 153
原创 相机相册
点击事件弹出弹出框上面三个按钮:imageBut.setOnClickListener(new View.OnClickListener() {@Overridepublic void onClick(View v) {AlertDialog.Builder builder = new AlertDialog.Builder(MyActivity.this);final AlertDia...
2019-09-24 11:53:20 148
原创 网络嵌套
package com.example.lx_0702view1lx;import android.content.Context;import android.content.SharedPreferences;import android.text.TextUtils;import com.google.gson.Gson;import com.lyz.sunzuihou.MyApp...
2019-07-02 11:33:48 320
原创 购物车网络嵌套
购物车网络嵌套public class MyUtilsOkhttp {private MyReApi myReApi;private MyCallBack myCallBack;private MyUtilsOkhttp() { HttpLoggingInterceptor loggingInterceptor = new HttpLoggingInterceptor(); ...
2019-07-01 10:48:38 122
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人