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..

-Nick






>


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. What is "Heap Worker" thread and what does it do?

It runs finalizers.  You probably are either causing the gc to run (you can
tell from the log) or have some finalizer getting stuck (look at the threads
in the de{*filter*}).




> 

2. Cyanogen 4.2.8.1

RT @cyanogen CyanogenMod-4.2.8.1 is out! http://bit.ly/19rv2O #android
#cyanogenmod  Get it with CM Updater!

-- 
=========================
Google Groups "Indonesian Android Community [id-android]" group.

To post to this group, send email to id-android@googlegroups.com

To request to subscribe to this group:

Click  

3. Android 1.6-"no sdcard found" error

4. getHeight() of TextView in TableRow problem

5. "Sorry Cant play this video.. trying to play video from youtube

6. Call Log Questions

7. When linux version 2.6.32 will be used?