Reputation: 816
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
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
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