Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

research web technologies for text view #21

Open
echostar7 opened this issue Oct 8, 2014 · 2 comments
Open

research web technologies for text view #21

echostar7 opened this issue Oct 8, 2014 · 2 comments

Comments

@echostar7
Copy link

such as css, html 5, etc

@ecobos
Copy link
Contributor

ecobos commented Oct 15, 2014

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants