[android-developers] TextView.setTextColor

2010-05-06 Thread mike
hi guys, i want to set the text color. color will differ according to the scenario because of that can't set the text color in the xml file. in android only few colors are available. if i want to set the colors like Pink,Orange it does not support. even if i set the int color code of those values

Re: [android-developers] TextView.setTextColor

2010-05-06 Thread Second Dancer
The params in setTextColor is not the resource id in xml file, but the real ARGB value combination, so here you hava two choice. 1. setTextColor(context.getResources.getColor(int resId)); 2. setTextColor(int value), for example white 0x 2010/5/6 mike > hi guys, > > i want to set the text