Android仿饿了么点击购物效果

haid8292 8年前
   <h2>效果</h2>    <p><img src="https://simg.open-open.com/show/690b15e402257f9316bbdcb63f921d54.gif"></p>    <h2>使用</h2>    <p>Define your banner under your xml :</p>    <pre>  <code class="language-java"><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" /></code></pre>    <p>setOnShoppingClickListener :</p>    <pre>  <code class="language-java">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);              }          }); </code></pre>    <p> </p>