Difference between OnTouch and OnClick Android

后端 未结 6 1155
南旧
南旧 2020-11-27 13:33

Is there any difference between OnTouchListener and OnClickListener? I am not asking from programming point of view, but from User Experience point

6条回答
  •  情话喂你
    2020-11-27 14:19

    OnClickListener - is used for a basic purpose, when we just need a click from a user i.e., click of a button, no drag or gestures on the screen

    OnTouchListener is basically a more fine-tuned control than OnClickListener. It performs and action on a press/ release on the screen It allows user with combination of move,down-touch,up-touch,finger drag or any movement gesture on the screen

提交回复
热议问题