Load CSS Styles in a Textview

by And-Rider » Thu, 22 Apr 2010 12:50:05 GMT

Sponsored Links
 Is it possible to display Css style tags in a text view..? The method
Html.fromhtml() converts only html tags to a spanned string but not
the Css styles


Load CSS Styles in a Textview

by patbenatar » Thu, 22 Apr 2010 15:18:40 GMT

 To answer your question, nope. Html.fromHtml() is exactly that: HTML.
Some sort of HtmlAndCss.fromMarkup() or something would be really
useful for lazy UI designers but you need to keep in mind that using
things like HTML and CSS in a application built for a certain set of
devices running a certain system just won't feel native to your users--
and native apps are something users tend to prefer.

Try searching first next time, CSS questions pop up all the time on
this group..



Sponsored Links

Load CSS Styles in a Textview

by patbenatar » Thu, 22 Apr 2010 15:37:17 GMT

 Oh, also: there is the WebView option, although I don't like
advocating this--again, not native. For example the DropBox
application--I downloaded and installed it and finally launched it to
see a WebView: "WTF? I could have quickly gone to dropbox.com in
Browser for this."

> >

Other Threads

1. pricing model for a service based android application/game?

(I apologize, if you see this posting twice, as I dont see my original
I do understand that a self sufficient or standalone android
can be bought/sold for one time price.

But what are various ways a user can be charged if an android
was a service based application, meaning every time user playing a new
would fetch some data from a service.

It seems to me that the pricing model should be on usage bases,
be it periodically (monthly/yearly) or be it per use.

As an hypothetical example, if using gmail on a g1 has a price tag,
what options would
the google team may have, in terms of making users pay?
Can someone please throw some light on the subject?


2. Custom tiles for MapView

Is there any way to use your own tiles instead of the map tiles
similar to tile overlays and map types in the JS maps API? If not, are
there plans to support it?

Also, if not, is the better approach to use a implementation w/
Scoller and an image downloader (since ScrollView only supports
vertical) or use a WebView w/ a JS Google maps implementation?


3. Observation and comments on Android and "regularly" scheduled events

4. R not re-generating in Eclipse after rename of the package

5. How to use SUSE Linux download android source code?

6. R not re-generating in Eclipse after rename of the package

7. There is a typo in system/core/rootdir/etc/init.goldfish.sh