购物车-android
程序员的美腻
这个作者很懒,什么都没留下…
展开
-
Android_添加购物车
添加到购物车的model层/** * 添加购物车的model层 * * */public class AddShopCarModel { public void receive(String source, String uid, String pid, final IAddShopCarModel iAddShopCarModel) { OKHttpUtils ins原创 2017-12-21 00:36:18 · 1034 阅读 · 0 评论 -
购物车的bean类全集
//一级列表public class ShopGroupBean { private boolean groupcheck; private String sellerName; private String sellerid; public ShopGroupBean(boolean groupcheck, String sellerName, String...原创 2018-05-20 15:44:45 · 344 阅读 · 0 评论 -
android_购物车上的自定义加减器
//自定义加减器的viewpublic class AddDeleteView extends LinearLayout { private OnAddDelClickListener listener; private EditText etNumber; //对外提供一个点击的回调接口 public interface OnAddDelClickLis...原创 2018-05-20 15:40:28 · 610 阅读 · 0 评论 -
购物车的依赖以及权限
//依赖 implementation 'com.github.bumptech.glide:glide:3.7.0' implementation 'com.squareup.okhttp3:okhttp:3.9.0' implementation 'com.squareup.okhttp3:logging-interceptor:3.5.0' implement...原创 2018-05-20 15:37:13 · 256 阅读 · 0 评论 -
Android_Retrofit+RxJava购物车的MVP
1.model层public class MyGoodModel { public void getShop(String pid,final Goods_p goods_p){ Api api = RetrofitUtil.getInstance(Urls.base_url).create(Api.class); HashMap map = new H原创 2018-01-15 20:37:03 · 401 阅读 · 0 评论 -
android_购入车列表
购物车的二级列表,适配器public class MyShopAdapter extends BaseExpandableListAdapter { Context context; ArrayList<ShopGroupBean> groupBeen; ArrayList<ArrayList<ShopChildBean>> go...原创 2018-05-20 15:19:42 · 232 阅读 · 0 评论 -
相机设置头像
添加权限<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/><uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/><uses-permission android:name="android.permiss原创 2018-01-17 20:00:00 · 258 阅读 · 0 评论 -
Android_retrofit上传文件(包含头像)
上传文件主要就是通过接口 1.AndroidMainfest.xml中加入权限 <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> <uses-permission andr原创 2018-01-17 19:50:20 · 1856 阅读 · 1 评论 -
Android_Retrofit查询购物车
网络MVP框架 参考:http://blog.csdn.net/qq_40087961/article/details/79058269 详细的购物车布局 参考:http://blog.csdn.net/qq_40087961/article/details/78859657 运用到的图片加载的框架:Fresco 将child布局中加载图片改为 com.facebook.drawe原创 2018-01-17 10:42:18 · 231 阅读 · 0 评论 -
Android_Okhttp请求查询购物车
查询购物车的model层public class SelectCarModel { private String url="http://120.27.23.105/product/getCarts"; private HashMap map = new HashMap<>(); public void verifySelectCarInfo(int uid, fi原创 2017-12-21 09:13:50 · 326 阅读 · 0 评论 -
Android_展示状态
* 将订单的状态展示出来* model层public class IndentListModel { private HashMap<String, String> map = new HashMap<>(); public void verifySelectCarInfo(int uid,int page,String urlTitle, final IIndentListPre原创 2017-12-21 13:02:14 · 287 阅读 · 0 评论 -
Android_tadlayout来展示订单
先将获取到的信息传到订单当中 model层public class IndentModel { private HashMap<String, String> map = new HashMap<>(); public void verifyIndentCarInfo(int uid,Double price, final IIndentPreasenter iIndentPres原创 2017-12-21 12:42:13 · 311 阅读 · 0 评论 -
Android_删除购物车
删除购物车的model层public class DeleteModel { public void deleteverfy(String uid, String pid, final Deleteper deleteper){ Map<String,String> map=new HashMap<>(); map.put("uid",uid);原创 2017-12-21 09:31:46 · 677 阅读 · 0 评论 -
Android_结算跳到立即下单
Activitypublic class IndentActivity extends AppCompatActivity { private TextView tv_price; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstance原创 2017-12-21 11:23:20 · 608 阅读 · 0 评论 -
Android_实现商品详情的展示页及布局
okhttp封装及logge拦截器: http://blog.csdn.net/qq_40087961/article/details/78828811,,记得要导入依赖及权限商品详情页的model层public class RecyclerDetailsModel { //自己定义的方法 public void receive(String pid, final IRecycler原创 2017-12-21 00:18:28 · 6246 阅读 · 0 评论 -
购物车零散整合
购物车的逻辑顺序博客 //网络请求 https://blog.csdn.net/qq_40087961/article/details/80013627 //bean类//mvp https://blog.csdn.net/qq_40087961/article/details/79058269 //view层 https://blog.csdn.net/qq_40087961/a...原创 2018-05-20 15:47:14 · 190 阅读 · 0 评论