I want to show a custom notification designed by the user as the notification. For example, I have the following notification:
<h2>
<span style="background-color: rgb(255, 156, 0);">Testing</span>
<u style="">HTML</u>
<span style="font-weight: 400;">tags </span>
<span style="background-color: rgb(231, 99, 99);">highlight</span>
<span style="font-weight: 400;"> test.</span>
</h2>
I use Spanned htmlText = Html.fromHtml(msg);
to parse the message.
When notification is shown I do see the bold text and the underline text,
but I don't see anything highlighted. Is there anyway to achieve it and show the colours, or Android simply doesn't support it?