Hi Chris, If you want to do something more in line with HTML formatting, then use a WebView. You can either load the html directly into the webview, or load it from an html file packaged with your application. The html file should go in the assets folder.
Hope this helps. - Mike On Feb 15, 6:49 am, Chrissshen <chrissss...@googlemail.com> wrote: > Hi, > > I have a string array and was trying to style certain parts of the > text with tags like <b>, <i>, ... but it doesn't work. > The array looks like this: > > <resources> > <array name="hour1"> > <item>blabla\n<b>blabla</b></item> > </array> > </resources> > > The text is displayed in the textview like this: > tTitel.setText(Html.fromHtml(Text[ii])); > > I tried it without Html.fromHtml too but this had no effect. The > styling tags do work if i use them directly in the code, like: > tTitel.setText(Html.fromHtml("blabla<b>blabla</b>"); > > Any ideas how to style the text in an array?? > > Cheers, > Chris -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en