HtmlSpanner

screenshot of HtmlSpanner

Android HTML rendering library with CSS support

Overview

The HtmlSpanner is an Android HTML rendering library that offers an alternative to the built-in Html.fromHtml() method. This library provides greater control over how HTML tags are rendered in TextViews, supporting complex elements like anchors, tables, lists, and more. HtmlSpanner also includes CSS support, allowing for styling customization.

Features

  • Custom HTML Rendering: Provides full control over how HTML tags are rendered.
  • CSS Support: Parses style tags and attributes, allowing for customized styling of HTML content.
  • Supported Tags: Includes support for various HTML tags like blockquote, ul, ol, code, and more.
  • Supported Style Attributes: Offers styling options for attributes like font, color, alignment, border, and more.