Multiple choice

A long press is triggered when the user taps and holds on the screen. Long Presses are handled by registering an ___________________.

  1. onLongPress

  2. onPressListner

  3. onLongPressListener

  4. onLongClick

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

A long press is triggered when the user taps and holds on the screen. Long Presses are handled by registering an onLongPressListener.Other than the name, the setup of a long press listener is exactly the same a standard click listener.