Android – colorful EditText tips
•
Android
Is there any way to set multiple colors for the prompt of EditText when wrapping android.support.design.widget.textinputlayout without affecting the behavior of floating edittexts?
Like, title*
Titles and * have different color tips
resolvent:
Use the spannablestring class, which allows you to use different styles in various parts of the string... If I remember correctly, the textappearancespan class is used to color text
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码