📜  ontouch android - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:27.903000             🧑  作者: Mango

代码示例1
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;
    }
});