jotobjects wrote: > You are right it doesn't seem to work. Context.getString() strips out > the format tags. The documentation implies it should work but the > mechanism is not explained or it is a bug. > > It does work with the XML directly like - > > <string name="foobar"><b>my <u>name</u> is <strike>sue</strike></b></ > string> > > android:text="@string/foobar"
The OP also posted this to StackOverflow. The workaround I posted there for string-array resources is to escape the HTML (e.g., <b>). It used to be you had to do that for string resources as well -- not sure when they changed string resources to work sans escaping. http://stackoverflow.com/questions/2267118/how-to-style-text-in-a-string-array/2267602#2267602 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 In Print! -- 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

