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. Where is a mobile phone :-)

How to detect where is a mobile phone?
It's very simple: just clic the link, insert the mobile phone number
and press the key "Localize".
In few seconds you will know where is your wife / husband / friend /
sister / son / boss...


Attention: sometimes it's better don't know...


2. how to view page source and what is @ hide?


In browsers when I type view-source: before any address it gives me
the page source. But i am not able to do it in android. It gives me
"web page not available" . Can any one please tell me why it is giving
that and any other way for me to view the page source in android?

        One more doubt is what exactly is "@hide", even if I commented
it( /** @hide */) it is having some meaning( it is not visible in
another classes ). When I deleted it its working fine, it is visible.
what is the reason?



3. process com.microjobsinc.mjandroid has stoped unexpectly

4. USB

5. Getting android.content.ActivityNotFoundException: No Activity found to handle Intent Error when starting a activity

6. Error reading jdwp list: EOF

7. Junit testing issues