Accessibility order - Android

On Android, you can set the accessibility order in XML, or modify the accessibility order in code. You can use the android:accessibilityTraversalAfter and android:accessibilityTraversalBefore properties in XML. Or you can use the setAccessibilityTraversalBefore and setAccessibilityTraversalAfter methods in code.

<TextView
    android:id="@+id/header" />
<RecyclerView
    android:id="@+id/list"
    android:accessibilityTraversalAfter="@id/description" />
<TextView
    android:id="@+id/description"
    android:accessibilityTraversalBefore="@id/header" />
header.setAccessibilityTraversalBefore(R.id.description)
list.setAccessibilityTraversalAfter(R.id.description)