material-components/material-components-android

[TextInputLayout] Set hint style for both floated and default positions

開放

#488 建立於 2019年8月2日

 (2 則留言) (0 個反應) (0 位負責人)Java (3,023 個分叉)batch import
Good First IssueWidget: TextFieldfeature request

倉庫指標

星標
 (15,910 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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.

貢獻者指南