Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matteobortolazzo/HtmlLabelPlugin
Use this Xamarin.Forms plugin to display HTML content into a label.
https://github.com/matteobortolazzo/HtmlLabelPlugin
android forms html ios labels uwp xamarin xamarin-forms xamarin-plugin
Last synced: 3 months ago
JSON representation
Use this Xamarin.Forms plugin to display HTML content into a label.
- Host: GitHub
- URL: https://github.com/matteobortolazzo/HtmlLabelPlugin
- Owner: matteobortolazzo
- License: mit
- Created: 2017-05-29T08:46:25.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-30T07:30:38.000Z (almost 2 years ago)
- Last Synced: 2024-06-29T20:54:31.758Z (4 months ago)
- Topics: android, forms, html, ios, labels, uwp, xamarin, xamarin-forms, xamarin-plugin
- Language: C#
- Homepage:
- Size: 1.49 MB
- Stars: 137
- Watchers: 13
- Forks: 64
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-xamarin-forms - Xam.Plugin.HtmlLabel ★132
README
[![Build Status](https://dev.azure.com/matteobortolazzo/HtmlLabel/_apis/build/status/matteobortolazzo.HtmlLabelPlugin?branchName=master)](https://dev.azure.com/matteobortolazzo/HtmlLabel/_build/latest?definitionId=26&branchName=master)
[![Downloads](https://img.shields.io/nuget/dt/Xam.Plugin.HtmlLabel.svg)](https://www.nuget.org/packages/Xam.Plugin.HtmlLabel/)# HTML Label Plugin for Xamarin.Forms
Use this Xamarin.Forms plugin to display HTML content into a label.## Setup
* Available on [NuGet](https://www.nuget.org/packages/Xam.Plugin.HtmlLabel)
* Install it in every Xamarin.Forms project.
* **iOS**: AppDelegate.cs
```cs
HtmlLabelRenderer.Initialize();
global::Xamarin.Forms.Forms.Init();
```
* **Android**: MainActivity.cs
```cs
HtmlLabelRenderer.Initialize();
global::Xamarin.Forms.Forms.Init(this, bundle);
```
* **UWP**: App.xaml.cs
```cs
var rendererAssemblies = new[] { typeof(HtmlLabelRenderer).GetTypeInfo().Assembly };
Xamarin.Forms.Forms.Init(e, rendererAssemblies);
HtmlLabelRenderer.Initialize();
```## How it works
On iOS and Android it uses the native HTML rendering capabilities of iOS's UILabel and Android's TextView.