Please advise me, how to set the text color in a StyleableTextField.
The following doesn’t work for me (the color stays black):
tf.setStyle('color', 0xFF0000);
And this too:
tf.setStyle('color', 'red');
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
StyleableTextFieldhas atextColorproperty. Try using that.(
tf.textColor = 0xFF0000;).However, I found that in my ItemRenderers I sometimes need to use both the
textColorproperty and the setStyle to properly change colors of StylableTextFields. Don’t really know why, yet.