DarkLeafyGreen
DarkLeafyGreen

Reputation: 70476

How to add buttons inside android notifications

I have managed to create this kind of notifications

enter image description here

following this guide: http://developer.android.com/training/notify-user/expanded.html#big-view

However I cannot find any documentation on how to achieve this style:

enter image description here

How can I do this?

Upvotes: 0

Views: 1029

Answers (2)

rds
rds

Reputation: 27004

As described in Custom notification layouts, you can set a custom content of the notification with Notification.Builder.setContent(RemoteViews)

Upvotes: 2

ranjk89
ranjk89

Reputation: 1580

You need to add custom notification layout and through the remote views.

Upvotes: 1

Related Questions