Ole*_*bul 7 notifications android android-notifications notification-action
有没有办法在默认情况下展开的通知中显示操作按钮?我使用持续通知来控制我的应用程序中的训练过程。我希望在通知区域中出现通知后立即显示“停止”和“暂停”等控制按钮。
您无法展开通知。唯一的解决方案是,设置 Priority Max,然后将其扩展到通知列表的顶部。这也取决于设备。
mBuilder.setPriority(Notification.PRIORITY_HIGH)
Run Code Online (Sandbox Code Playgroud)