> Guess what are the differences between TextView.setText(int) and > TextView.setTextColor(int) The name of the arguments are different (resId vs. color). If all int arguments in the api were resource IDs that would really suck.
On 17 Aug, 11:40, Reza Mohammadi <[email protected]> wrote: > Guess what are the differences between TextView.setText(int) and > TextView.setTextColor(int) > > Answer: > the first int should be a resource id, but the second one should NOT > be a resource id. > > So if you are calling setTextColor(R.color.red) and you see grey, you > are not necessarily colorblind. Use setTextColor(0xffff0000) instead. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

