How can I marquee the text content in Notification?

前端 未结 3 835
我在风中等你
我在风中等你 2021-01-05 13:05

The text content is just too long to be displayed in the notification and it is cut. What can I do? Please help.

3条回答
  •  天涯浪人
    2021-01-05 13:41

    Set up a Custom Layout for the Notification. In the Layout, use a TextView for the Notification, then on the XML for the TextView, add in:

    android:ellipsize="marquee"
    

提交回复
热议问题