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
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to