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. Can we develop application for CECT G1(Clone g1)?

Pay attention about this phone disadvantage :
the clone doesn't have the keyboard, GPS, or WiFi


2. 鍥炲: Orienta tion for Dialog



    I am just a beginer to study android,and there are have less references,if 
you have any references,please send me some.



Thank you!

Date: Wed, 12 Aug 2009 18:40:16 +0800
Subject: : [android-beginners] Re: Orientation for Dialog
From: kyowxf2...@gmail.com
To: android-beginners@googlegroups.com

plz rewritelayout xml. ctrl and f11 can change the orientation.

2009-8-12 5:56 PMquot;jbrohan" <jbro...@gmail.com> 

I've been working through Hello, Android and Ed Burnette dealt with
this issue in a screen.

I had a file (in this case) main.xml in the res/layout folder. I made
a new folder in res called layout-land and made a new main.xml there.
What happens when you alter the orientation (Ctrl F11 in emulator) is
that the layout-land versions (or the regular versions) of the
appropriate .xml files are accessed. I should think that the rotation
change would precipitate an invalidate() and this would do a redraw of
the whole screen.

develop android appl...


3. PORTING android to my smdk2440 board

4. Layout problem with ListView

5. Example "Lunar Lander" crashes & gives strange messages

6. Crash when bringing activity to foreground

7. Is touch screen a mandatory requirement for Android phone?