How can I marquee the text content in Notification?

前端 未结 3 836
我在风中等你
我在风中等你 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:40

    Try this:

    it Works for me, I have tested it.

    First Create the Custom Notification :

    as Shown here: This Link of the developer site.

    After that in TextView of message you want to marquee, put this line:

     android:ellipsize="marquee"
    

    And It Works as you want. Enjoy. Hope it will help you. Thanks.

提交回复
热议问题