What are you trying to do? Like I said, the main purpose of this API is to create styled text that can be given to TextView for display. If you want to do your own display of that stuff, you'll need to write your own text layout engine line TextView (or using the existing layout stuff like it already does).
You'll really need to dig in to the code of TextView and these classes if you want to do your own special stuff with them. On Wed, Mar 11, 2009 at 4:57 AM, John Doe <[email protected]> wrote: > > I am really trying hard to figure it out :( Probably it has a very > easy way to implement but I couldnt discover. > > Spanned spanned; > spanned = Html.fromHtml(content); > > I am looking inside spanned and I see that all image url's and text is > properly kept. There must be a way to reach them. Can you help me to > figure it out? Can anyone? > > On Mar 10, 11:39 pm, Dianne Hackborn <[email protected]> wrote: > > This function is intended to create text with style spans that you can > put > > into a TextView for display. Unfortunately the underlying style span > stuff > > is not extensively documented, though it shouldn't be hard to figure out > -- > > look at the various classes in android.text.style for the kinds of > standard > > style spans that are in the platform. You may also want to browse the > > open-source code to see how they are used. > > > > > > > > On Tue, Mar 10, 2009 at 12:21 PM, John Doe <[email protected]> wrote: > > > > > I have looked a lot on the internet but I couldnt find anything. So > > > thats why I am asking it here. > > > > > While parsing an RSS I had to use Spanned class. > > > > > Spanned spanned; > > > spanned = Html.fromHtml(content); > > > > > content string keeps the html content in it. when i check spanned > > > object during debug it really contains image urls and text strings but > > > how do I reach them? I read ImageGetter and getSpans on SDK but there > > > is no example on how to use them. Would you please help me? > > > > -- > > Dianne Hackborn > > Android framework engineer > > [email protected] > > > > Note: please don't send private questions to me, as I don't have time to > > provide private support. All such questions should be posted on public > > forums, where I and others can see and answer them. > > > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

