I do not understand very well what Android Studio refers to with this

0

I have a Frame layout, and I wanted to put an OnTouchListener, it works correctly but I do not understand why I get this notice.

Thank you.

    
asked by DazzelWazzel 11.05.2018 в 17:35
source

1 answer

1

I think you should overwrite the performClick () method because you do not try to put your switch in this

@Override
public boolean performClick(View view, MotionEvent event){
    switch(){...}
    return true;
}

or use onTouch ()

@override
public boolean onTouch(View view, MotionEvent event) {
    switch(){...}
    return true;
}
    
answered by 11.05.2018 в 19:20