[个人简介]
ocnyang / cartlayout Goto Github PK
View Code? Open in Web Editor NEW:unicorn: 使用 RecyclerView 实现店铺分组购物车。 高仿京东购物车、高仿淘宝购物车、高仿天猫购物车
License: Apache License 2.0
:unicorn: 使用 RecyclerView 实现店铺分组购物车。 高仿京东购物车、高仿淘宝购物车、高仿天猫购物车
License: Apache License 2.0
[个人简介]
想获取被选中的商品id。。。好像没这个方案
如果想点击组进行折叠 怎么搞
构造方法中传的是树状的数据结构,我怎么样获取选中的数状数据,就是店铺里面有三个商品在购物车,但是要删除一个商品,我怎么样拿到这个店铺和这个商品,可能是我这边遍历的有问题,希望指教一下
点击GroupItem的选择按钮时,ChildItem中的刷新图片闪烁,应只做CheckBox控件刷新。
在CartAdapter中,removeChild()方法中判断isLastOne的条件会造成下标溢出
(ICartItem.TYPE_GROUP == mDatas.get(position + 1).getItemType())
当postion是最后一个时候,就会下标溢出
应多加一层判断
if (position + 1 == mDatas.size()) {
if ((ICartItem.TYPE_GROUP == mDatas.get(position - 1).getItemType())) {
isLastOne = true;
}
} else {
if ((ICartItem.TYPE_GROUP == mDatas.get(position - 1).getItemType()) &&
(ICartItem.TYPE_GROUP == mDatas.get(position + 1).getItemType())) {
isLastOne = true;
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.