Duplicate clickable bounds

This test checks if multiple interactive items are displayed at the same location.

It can be difficult for a user to interact with stacked items. It also becomes difficult for some accessibility services, such as Switch Access, to clearly represent the actionable items to the user.

Solutions

  • When you implement onClick or onLongClick, check if any clickable ancestor or descendant does not share the same location.
  • Set the clickable property of a view to false if it does not perform an action when clicked.

Sources