How to set TextInputLayout error message colour?

前端 未结 9 2223
旧巷少年郎
旧巷少年郎 2020-11-27 13:58

How can I change the colour of the error message that can be set to appear below the text field in a TextInputLayout (via setError(...) – see error

9条回答
  •  时光说笑
    2020-11-27 14:31

    If you are using com.google.android.material.textfield.TextInputLayout this input layout than you just set one style

    
            @color/text_input_box
            @color/colorRed
        
    

提交回复
热议问题