某些应用程序(特别是Lookout Mobile Security)会在顶部(状态)栏上显示描述短时间内(可能仅1秒)完成操作的文本,然后显示返回到常规状态栏(至少具有良好的动画效果)在HTC手机上).这是怎么做到的?我不是在谈论通知!
这实际上是其中的一部分Notification.它被称为tickerText.看到:
http://developer.android.com/reference/android/app/Notification.html#tickerText
而且,如果在HoneyComb上开发:
http://developer.android.com/reference/android/app/Notification.html#tickerView
你也可以传入tickerText到构造函数中Notification.