views:

100

answers:

1

As i have referred some articles and sites, i found that we can also create HTML file and then we can display HTML file using Android WebView..

I have referred at:

  1. http://tinyurl.com/yjona4j
  2. http://tinyurl.com/3xlnjjf

So my question is that - "Is Android provides STYLE/CSS tag to define styles , if yes then there is any way to write STYLE/CSS tag in Android ?"

Thanx - Paresh

+2  A: 

Of course. The Android Web View is a full fledged browser, and supports everything the built in "Browser" application supports (CSS, JavaScript). Newer versions of Android (2.2) have the V8 runtime and do great on the Acid tests.

You would use CSS as you do in any other web page.

Yann Ramin
But i am using Android 1.5 for my current application...i will sure try it inside Android 2.2 (Froyo)..but in Android 1.5, what i have to do for that [email protected] thanx for then answer
PM - Paresh Mayani
@Paresh: Nothing. CSS was supported from the beginning of (Android) time. Make a web page - it will display correctly.
Yann Ramin
@theatrus...ok i try it and let you know..thanx for the support
PM - Paresh Mayani
@theatrus...ya every HTML pages are loading successfully..first i stored HTML with style/css in Assets Folder and then by using Webview i have loaded it.Thanx
PM - Paresh Mayani