问题
Is there a way to set multiple colors to the edittext's hint when wrapped by android.support.design.widget.TextInputLayout without compromising the behaviour of floating edittexts?
AFAIK The only way to set multiple colors to the edittext hint is by using SpannableStringBuilder. But when the editext is wrapped by TextInputLayout and the hint set programmatically using a SpannableStringBuilder, it behaves like a normal editext which does not float (the labels aren't floating)
Whereas if the hint is set through the xml it works as a floating edittext but in this case the hint would be single colored
I am looking for a way to add multiple colors to the edittext while the floating labels work intact.
来源:https://stackoverflow.com/questions/35551570/how-to-set-multiple-colors-to-a-floating-edittexts-hint