onTouchEvent

open fun onTouchEvent(event: MotionEvent): Boolean

Handles touch events on the menu bar. Consumes all touch events to prevent them from propagating through to views beneath the toolbar.

Return

Always returns true to consume the touch event.

Parameters

event

The motion event being dispatched.