jeasonwong / elemeshoppingview Goto Github PK
View Code? Open in Web Editor NEW仿饿了么点击购物效果
仿饿了么点击购物效果
Unable To Change Button Size
Hello
I wounder if there is a way to only show counter instead of clicking and then show it as now it is ...
When the user presses the button, it shows the minus and plus signs and the amount (1) but the OnAddClick event is not triggered. Only when the user presses the plus sign again.
I suggest this change (ShoppingView.java line 249):
if (mState == STATE_NONE) {
mNum++;
startMoveAnim();
if (mShoppingClickListener != null) {
mShoppingClickListener.onAddClick(mNum);
}
}
想将 控件设置为 初始状态 可以用
mIsForward = false;
mState = STATE_NONE;
invalidate();
但是 滑动列表就会出现错位等问题。。
老哥,预览图挂了 更新下(友好建议)
在RecyclerView使用ShoppingClickListener不会拦截父控件的点击事件
触发ShoppingClickListener也会触发父控件的点击事件。
在开发当中遇到一个问题,把该控件放在RecyclerView的每个item中时,由于列表加载每一项的布局时会复用之前的布局,就会存在无法正常确保每一项中该控件当前的状态,求大神们给个比较好的解决方法
hi
i have RecyclerView and want to get number of each item after onAddClick or onMinusClick with ID of each item inside activity not adapter
now what should i do ?!
i used interface but how should i know about item ID ?
English is not my mother tongue; please excuse any errors on my part
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.