You can detect Long press by using below code
override fun onAccessibilityEvent(event: AccessibilityEvent?) { if (event?.eventType == AccessibilityEvent.TYPE_VIEW_LONG_CLICK) { // LongPress Detected here } }