原创

Android仿饿了么点击购物效果

效果

Android仿饿了么点击购物效果

使用

Define your banner under your xml :

 <me.wangyuwei.shoppoing.ShoppingView         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:layout_marginTop="10dp"         app:sv_bg_color="#D8BFD8"         app:sv_text="TF-BOYS"         app:sv_text_size="18sp" />

setOnShoppingClickListener :

 mSv1.setOnShoppingClickListener(new ShoppingView.ShoppingClickListener() {             @Override             public void onAddClick(int num) {                 Log.d("@=>", "add.......num=> " + num);             }              @Override             public void onMinusClick(int num) {                 Log.d("@=>", "minus.......num=> " + num);             }         }); 

 

正文到此结束
Loading...