android - How to format notification text in API 35? - Stack Overflow

Traditionally, it has been possible to use HTML tags or spannable strings to format text in notificatio

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 badges
Add a comment  | 

1 Answer 1

Reset to default 0

Android 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

相关推荐

  • android - How to format notification text in API 35? - Stack Overflow

    Traditionally, it has been possible to use HTML tags or spannable strings to format text in notificatio

    1天前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信