2020
09-27
09-27
Android 购物车加减功能的实现代码
Android实现购物车加减功能,效果图如下所示:publicclassadderViewextendsLinearLayoutimplementsView.OnClickListener,TextWatcher{privateintamount=0;//购买数量privateintgoods_storage=Integer.MAX_VALUE;//商品库存privateOnAmountChangeListenermListener;privateEditTextetAmount;privateButtonbtnDecrease;privateButtonbtnIncrease;publicadderView(Contextcontext){this(conte...
继续阅读 >