Answers for "ontouch android"

1

ontouch android

imageButton.setOnTouchListener(new OnTouchListener() {
    @Override
    public boolean onTouch(View v, MotionEvent event) {
        if(event.getAction() == MotionEvent.ACTION_UP){

            // Do what you want
            return true;
        }
        return false;
    }
});
Posted by: Guest on January-11-2021

Code answers related to "ontouch android"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language