开发者

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

开发者 https://www.devze.com 2023-03-09 16:48 出处:网络
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?

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

精彩评论

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

关注公众号