How can I set the TextColor of a TextAppearanceSpan?
Posted
by michael
on Stack Overflow
See other posts from Stack Overflow
or by michael
Published on 2010-03-18T22:22:34Z
Indexed on
2010/03/18
22:41 UTC
Read the original article
Hit count: 328
android
Hi,
I currently able to create a Medium size TextAppearanceSpan, But how can I set the text color to a specified RBG color (say #c71585)?
new TextAppearanceSpan(context, android.R.style.TextAppearance_Medium);
I see there is a constructor for
public TextAppearanceSpan(Context context, int appearance,
int colorList) {
But what is the int for colorList? Is there any example for this?
Thank you.
© Stack Overflow or respective owner