material-components / material-components/material-components-android
[Exposed Drop Down][a11y] Overriding the accessibility delegate of TextInputLayout breaks dropdown functionality
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 3.2k
- PR merge metrics
- No merged PRs in 30d
Description
**Description:**
Overriding the accessibility delegate of TextInputLayout stops normal functionality for exposed drop down. As we wish to add content description, we thought of updating the accessibility info. This changes the talkback for material design exposed drop down to edit text and double stop working as it doesn't open the dropdown pop up.
**Expected behavior:**
Expected behavior is that the TextInputLayout and child MaterialAutoCompleteTextView behaves normally as exposed drop down and the new text added to accessibility info gets announced.
**Source code:**
//textInputLayout.setTextInputAccessibilityDelegate(object : TextInputLayout.AccessibilityDelegate(
// textInputLayout
// ) {
// override fun onInitializeAccessibilityNodeInfo(
// host: View,
// info: AccessibilityNodeInfoCompat
// ) {
// super.onInitializeAccessibilityNodeInfo(host, info)
//. // TODO Code
// })
**Android API version:** 13
**Material Library version:** 1.4.0
**Device:** Pixel 6
To help us triage faster, please check to make sure you are using the [latest version](https://github.com/material-components/material-components-android/releases) of the library.
We also happily accept [pull requests](https://github.com/material-components/material-components-android/pulls).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with TextInputLayout, MaterialAutoCompleteTextView, the custom TextInputLayout.AccessibilityDelegate, Android API 13, and Material Library 1.4.0. Read the accessibility delegate setup shown in the issue and verify that adding accessibility information preserves normal exposed-dropdown behavior and announces the added text without changing the control to a non-opening edit text.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- accessibility, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100