> Hi. I want to know how to set the background color of TextView and the > color of the text on TextView. Is it about "android:shadowColor" and > "android:textColor"? The documents say the value of them “Must be a > color value, in the form of ‘#rgb’, ‘#argb’, ‘#rrggbb’, or > ‘#aarrggbb’” (http://code.google.com/android/reference/android/widget/ > TextView.html#attr_android:shadowColor). I wrote > android:shadowColor=”#rgb”, but it did not work.
The documentation uses "#rgb" in the manner that CSS uses it, where the 'r', 'g', and 'b' represent a hexadecimal digit indicating the amount of red, green, and blue to put into the color you are trying to define. "#rrggbb" use two hexadecimal digits per color. "#aarrggbb" also includes a two-digit hexadecimal value for the alpha channel (indicating opacity). So, literally putting: android:shadowColor=”#rgb” in a resource will not work, since neither 'r' nor 'g' are valid hex digits. You will find more about this notation at: http://en.wikipedia.org/wiki/Web_colors You can find any number of online color pickers that will provide you the #rgb or #rrggbb values for a given color you select. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ -- Available Now! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

