Skip to main content
Logo Appt Light

Accessibility group on Android

It is easier and quicker for users of assistive technologies to interact with grouped elements. Grouping elements into a single control makes things clearer, simplifies interactions, and provides larger touch targets.

On Android you can group elements by using the android:focusable and android:screenReaderFocusable attributes. Sometimes you also need the android:importantForAccessibility attribute. Don't for get to set an android:contentDescription for the group.

Keep in mind that android:focusable is not only used by assistive technologies, but also by other means of interaction.

<LinearLayout
    android:focusable="true"
    android:screenReaderFocusable="true"
    android:contentDescription="Appt group">

    <TextView
        android:focusable="false"
        android:importantForAccessibility="no"/>

    <ImageView
        android:focusable="false"
        android:importantForAccessibility="no"/>
</LinearLayout>

Feedback?

Let us know!