开发者

Is it possible to create a custom notification with controls such as buttons in Android? How?

According to the Android Developers' Guide, it is possible to create a custom notification view. However, is it possible to create one with controls such as buttons and text views? If yes, how?

Note that I think it has something to do with PendingIn开发者_运维技巧tent.


Create a RemoteViews object -- like you would for an app widget -- and put it in the contentView public data member of the Notification.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜