Android 仿QQ 5.0 氣泡提示 拖動爆炸消除
阿新 • • 發佈:2019-02-04
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(); } }