platform-guideline 1 linked patterns checked

Android Developers: Detect common gestures

Documents Android GestureDetector support for common gestures including onDown, onLongPress, onFling, double tap, scroll, and touch-event handling through the target view.

Read with a purpose

What this source can teach

Use this source to understand a platform convention and the setting it was designed for.

  1. Start with the original. Open the source and find the guidance or example relevant to your task.
  2. Trace the connection. Use the claim notes below to see how this site applies the source to specific patterns.
  3. Check the setting. Compare the source's platform, people, and constraints with your own decision.

Pattern Decisions This Source Supports

Pattern Supported decision Required contract Claim note
Long press Choose long press when the design problem is a sustained-contact gesture and its threshold, feedback, cancellation, and equivalent action path. Long press starts only from a target that intentionally supports sustained contact. Supports platform recognition of onLongPress and related common gesture detection.

Comparisons supported by this source

Evidence Role

This source is treated as platform-guideline evidence. Its value comes from the specific claims and setting described above.

Publisher: Android Developers. Last checked: .

Saved items