material-components/material-components-android

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

Open

#488 建立於 2019年8月2日

在 GitHub 查看
 (2 留言) (0 反應) (0 負責人)Java (15,910 star) (3,023 fork)batch import
Good First IssueWidget: TextFieldfeature request

描述

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.

貢獻者指南