In my Android application development, I have one button, the button text is not one colored text, it is two-line text, and each line uses a different color for the text of the line. How to implement this? "Two lines" can simply be implemented by adding "\ n" to the text, I don’t know how to set different colors for each line text on the button. Who can help?
source
share