Search code examples
androidcsstextviewstylesheetandroid-custom-view

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.


Solution

  • you should try this :

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