material-components / material-components/material-components-android
[TextInputLayout] HelperText and Talkback compatibility; able to turn off its accessbility on demand
Nessuno ha ancora preso questa issue.
- Lingua principale
- Java
- Stelle
- 17.4k
- Fork
- 3.2k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Is your feature request related to a problem? Please describe.
When a TextInputLayout has helperText enabled set to true and appropriate texts assigned to the attribute, Talkback reads aloud the helperText on each character input and deletion. When I have it showing, talkback highlights the entire textinputlayout, only reading the helperText but not reading the actual hint nor input of the textinputedittext until an additional swipe to navigate to the field is executed. I've tried making a custom AccessbilityDelegate to work around these default behavior, but I've come across scenario as well where I cannot make the helper text non-accessible like I would on a view element with View.importantForAccessibility attribute.
Describe the solution you'd like
I like the accessbilitydelegate idea I had so I'm keeping it; but to simulate a better talkback experience, I opted to removing helperText entirely when talkback is enabled and using a custom textview for similar effect, but I can switch off its accessibility and add its description to the custom accessibilitydelegate for the textinputlayout. Naturally, this created a few unsavory conditions I had to make to balance between non-talkback and talkback modes; same conditons if not more for error handling.
We also happily accept pull requests.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia dal comportamento di accessibilità di helperText di TextInputLayout e dall'AccessibilityDelegate personalizzato descritto nell'issue; esamina come vengono esposti TextInputEditText e il focus di TalkBack. Il lavoro è completato quando i chiamanti possono controllare se helperText è accessibile su richiesta, preservando al contempo un accesso appropriato al hint e all'input del campo, e il comportamento è stato verificato in scenari TalkBack.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- android, java
- Ambito
- accessibility, mobile
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100