android studio onDragListener not working

114 Views Asked by At

Touch works, but Dragging doesn't seem to work at all, what is going on?

public class NavMap extends View {
    public NavMap(Context c){
        super(c);
        OnTouchListener touch = (view, motionEvent) -> {
            Log.i("I", "Touch");
            return false;
        };
        OnDragListener drag = (view, dragEvent) -> {
            Log.i("I", "Drag");
            return true;
        };
        setOnDragListener(drag);
        setOnTouchListener(touch);
    } 
}
0

There are 0 best solutions below