以EditText为例:
username.setOnDragListener(new OnDragListener() {
@Override
public boolean onDrag(View v, DragEvent event) {
// TODO Auto-generated method stub
Log.i("touch", event.getX()+" "+event.getY()+" "+event.getAction());
return false;
}
});
版权声明:本文为博主原创文章,未经博主允许不得转载。