Naitik
Naitik

Reputation: 816

How to Apply CSS Style Code into My Custom TextView in Android

I want to apply CSS code to My Custom Textview.

I had try to make like,

textview.setText(Html.fromHtml("database content will be here in HTML format"));

and I would like to display CSS code into this.

Upvotes: 0

Views: 4294

Answers (2)

Dharmendra
Dharmendra

Reputation: 249

you should try this :

textview.setText(Html.fromHtml("<p font-color="blue">database content will be here in HTML format</p>"));

Upvotes: 2

koutuk
koutuk

Reputation: 832

You can use Something like this might help you.

textview.setText(Html.fromHtml("<p font-color="blue">database content will be here in HTML format</p>"));

Upvotes: 1

Related Questions