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
.
精彩评论