Hi, I try to display HTML formatted text in a TextView contained in a ListView and can't get any formatting displayed. Linebreaks are displayed correctly, so the HTML formating is executed (at least to some extend). I download the text from the web and it contains <br>-tags (which are displayed correctly) and simple tags like <b> and <i>. I also tried things like <small>, etc, which I found on different Android tutorials.
Any way to get some formatting (sizes, colors, anything) into my TextView? List<String> titles = new ArrayList<String>(messages.size()); *Spanned text = Html.fromHtml(text);* titles.add(text.toString()); ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, R.layout.row, titles); ListView list = (ListView) findViewById(R.id.list); list.setAdapter(adapter); My TextView: <TextView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/TextView01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="@dimen/text_size" android:text="temp" /> Thanks, Stephan -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en