Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

on touch listener 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;
    }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #touch #listener #android
ADD COMMENT
Topic
Name
7+5 =