Codename One Adds Native Rich Text Component Without Web View Dependency

The Codename One open-source framework has introduced RichTextComponent via pull request #5421, a read-only component for displaying formatted text without embedding a browser or web view. It supports headings, inline styles, lists, links, and images, filling the gap between the simple SpanLabel and the heavyweight BrowserComponent. The new component integrates naturally into standard Codename One layouts, measuring its own height based on available width and scrolling alongside surrounding UI elements. Developers can supply content in multiple formats including HTML, Markdown, AsciiDoc, and RTF, or build content programmatically using structured data. Link handling, image loading, and caching remain under application control, keeping the component lightweight and framework-agnostic.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in