material-components / material-components/material-components-android
[TextInputLayout] Set hint style for both floated and default positions
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Java
- Sterne
- 17.4k
- Forks
- 3.2k
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Is your feature request related to a problem? Please describe.
I'm adding text field programmatically and then setting styles to hint with setHintTextAppearance, but styles are working only on floated state and I couldn't find the way to apply them to hint at normal state. While setDefaultHintTextColor, does work for both. Setting textSize to editText child of TextInputLayout doesn't help also.
Describe the solution you'd like
I would like to setHintTextAppearance work for both state of hint.
Describe alternatives you've considered
It's probably also okay, if there will be new method for this? I don't see any other solutions.
Additional context
I would like to help, but I'm not so experienced, so I will need a little bit guidance.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, die TextInputLayout-Implementierung und den Code zu finden, der setHintTextAppearance für schwebende und standardmäßige Hinweiszustände behandelt. Verfolge, wie setDefaultHintTextColor auf beide Zustände angewendet wird, füge anschließend ein gleichwertiges Verhalten hinzu und überprüfe mit den entsprechenden Android-Tests, dass die Gestaltung des Hinweises in jeder Position konsistent ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- android, java
- Bereich
- mobile
- Issue-Typ
- Feature
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100