Accessibility focusability on Android
An element should indicate whether it should be focusable by assistive technologies or not. You can help users of assistive technologies by choosing which elements they can interact with. By keep unnecessary elements out of the accessibility tree, the user experience is improved.
On Android, you can use the
setImportantForAccessibility method to set whether assistive technologies can focus on an element. You can also set this property directly in XML by using the
view.importantForAccessibility = View.IMPORTANT_FOR_ACCESSIBILITY_NO