LifeApp / LifeAppV1

1 stars 0 forks source link

research web technologies for text view #21

Open echostar7 opened 10 years ago

echostar7 commented 10 years ago

such as css, html 5, etc

ecobos commented 10 years ago

You are only allowed to use HTML syntax with textView like this: textView.setText(Html.fromHtml(" -- HTML goes here --"));

If you want to use CSS, one would need to use WebView (http://developer.android.com/reference/android/webkit/WebView.html), which just renders the data from a website.

jyoti2730 commented 10 years ago

yes, You need to use Html.fromHtml() to use HTML in your XML Strings. Simply referencing a String with HTML in your layout XML will not work.