Giter Site home page Giter Site logo

mcxtzhang / animshopbutton Goto Github PK

View Code? Open in Web Editor NEW
1.3K 21.0 180.0 4.93 MB

A shopping cart button with a telescopic displacement rotation animation ...一个带伸缩位移旋转动画的购物车按钮

Home Page: http://blog.csdn.net/zxt0601/article/details/54235736

License: Apache License 2.0

Java 100.00%
shopping-cart-button animation ele

animshopbutton's Issues

不具体的长度

服务器的数据每个商品最大长度不一样,点减号减到0的时候显示加入购物车,再次点击加入购物车点击不了
,如果指定一个默认的值才没问题,请教一下怎么解决这种办法呢

无法设置数字的颜色

如果底色为深色的话,在显示数量的时候会看不清,而方法中找不到设置的方法,还请指点或者添加一个属性,谢谢

建议增加minCount属性。

发现FailType中有COUNT_MIN,但是却无法设置最小值,建议增加这一功能,在某些情况下数量是不能为0的。

没有及时刷新

BottomSheetLayout 显示在AnimShopButton上面, 在BottomSheetLayout 修改AnimShopButton数量 ,没有及时更新,关闭屏幕 ,再打开手机屏幕 数量就刷新了

ignoreHintArea模式加号点击区域大于圆圈区域

您好,打扰了。
我感觉当在app:ignoreHintArea="true"模式的时候,加号点击区域变大算是bug
所以我在919行加了
if (isIgnoreHintArea()) {
if (mAddRegion.contains((int) event.getX(), (int) event.getY()))
onAddClick();
}else{
onAddClick();
}

希望可以添加的新的添加删除监听

我在初始化的时候把传给你 然后再回调的时候 你把传回给我 这样做的好处是 在列表中可以对所有的回调接口进行管理 而不是每一次都新建一个Listener
ps: 这里T当然指的是泛型了

点击事件

建议将onDelClick()和onAddClick()修饰符protected改成public

在recyclerview中重新刷新数据时setCount数量不变或是错乱

首页界面viewpager中有3个fragment,fragment中用recyclerView显示商品列表,当在购物车编辑购买数量后用 EventBus 通知首页刷新商品列表,打log发现数据有改变,但 AnimShopButton中的数量确没变化,一开始还以为是 notifyDataSetChanged() 无效,但测试发现界面刷新了,但 AnimShopButton 数量还是没改变。

之前还碰到过,在商品列表中添加或减少购买数量,其他商品的 AnimShopButton 数量跟着改变,数字错乱

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.