android-notifications - android通知,如何制作没有图标的动作按钮
问题描述
在 Nougat 之前的操作系统中,它具有用于创建带有图标的操作按钮的 api
Notification.Action theAction = new Notification.Action.Builder(R.drawable.action, "Action", pendingIntent).build();
由于 OS Nougat 图标不再显示
NotificationCompat.Action action = new NotificationCompat.Action.Builder(
Icon.createWithResource(this, R.drawable.action),
"Action",
pendingIntent).build();
但它仍然需要提供图标。
有可能,或者如何制作没有图标的操作按钮,以便通知操作不显示早于 Nougat 的操作系统的图标?