Accessibility group - Android
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>