1. 程式人生 > >Android 仿QQ 5.0 氣泡提示 拖動爆炸消除

Android 仿QQ 5.0 氣泡提示 拖動爆炸消除

How to use

    <com.dk.view.drop.WaterDrop
        android:id="@+id/drop"
        android:layout_width="25dp"
        android:layout_height="25dp"
        android:gravity="center_vertical" />

WaterDrop drop = (WaterDrop) convertView.findViewById(R.id.drop);
        drop.setText(String.valueOf(position));
        drop.setOnDragCompeteListener(new

        OnDragCompeteListener() {

            @Override
            public void onDrag () {
                Toast.makeText(MainActivity.this, "remove:" + position,
                        Toast.LENGTH_SHORT).show();
            }
        }