KB-20071218-041
From Triled Wiki
- Status: respond received
- author: Rick Genter
- link: http://groups.google.com/group/android-developers/msg/5604a2ed22ad6c12
- Description: Problem in setting a valid DecimalFormat string resource
- Steps to reproduce:
resource example (from original post):
<string name="Numeric_Format">#,##0</string>
Eclipse IDE produces error:
Error: Color value not valid -- must be #rgb, #argb, #rrggbb, or #aarrggbb (at 'Numeric_Format' with value '#,##0').
[edit] Temporarily solution
Workaround is suggested by Luisa Magarian, you need to escape first character:
<string name="Numeric_Format">\#,##0</string>
[edit] See also
- Similar problem with layout parsing (e.g. android:text="#")
