Traditionally, it has been possible to use HTML tags or spannable strings to format text in notifications, as explained in this article.
However, it's not working in API 35. It seems that Android 15 removes all formatting from notifications and shows everything in plain text.
Is there an alternative way to achieve this in API 35 (without using custom views)?
Traditionally, it has been possible to use HTML tags or spannable strings to format text in notifications, as explained in this article.
However, it's not working in API 35. It seems that Android 15 removes all formatting from notifications and shows everything in plain text.
Is there an alternative way to achieve this in API 35 (without using custom views)?
Share Improve this question asked Mar 8 at 11:09 jmartjmart 2,94123 silver badges40 bronze badges1 Answer
Reset to default 0Android has removed support for HTML formatting and spannable strings in notifications from API 35, displaying all text as plain text. So, without the use of custom views, I don't think you would be able to achieve what you want. But you might consider using simpler text styles.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744897196a4599766.html
评论列表(0条)