android notification怎么添加Button

android如何在notification添加一个Button,最近学android希望在通知栏里面添加一个按钮,我使用remoteviews很难根据不同系统适配出布局合适的通知栏,请问一下有没有方法可以不使用remoteviews就能添加一个Button,或者使用remoteviews怎么适配出和系统适应的通知栏。

给通知栏设置一个自定义布局然后添加给Notification就可以实现了。