Gallal
Gallal

Reputation: 4262

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 PendingIntent.

Upvotes: 2

Views: 366

Answers (1)

CommonsWare
CommonsWare

Reputation: 1006819

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

Upvotes: 1

Related Questions