我怎样才能选取框通知文本内容? [英] How can I marquee the text content in Notification?

查看:90
本文介绍了我怎样才能选取框通知文本内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

的文本内容是太长要显示的通知中,它被切断。我能做什么?请大家帮帮忙。

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

推荐答案

试试这个:

它为我工作,我已经测试过了。

it Works for me, I have tested it.

首先创建自定义通知:

如下所示:此链接开发者网站

之后,在消息TextView中要选取框,就把这行:

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.

这篇关于我怎样才能选取框通知文本内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆