3个按钮没问题,但4.一个不显示。
根本不可能吗?
编辑:
我正在添加 4 个按钮:
builder.addAction(R.drawable.av_previous, "", PendingIntent.getBroadcast(context, 1, new Intent(context, NotificationPlayerControlReceiver.class), PendingIntent.FLAG_CANCEL_CURRENT));
builder.addAction(R.drawable.av_play, "", PendingIntent.getBroadcast(context, 2, new Intent(context, NotificationPlayerControlReceiver.class), PendingIntent.FLAG_CANCEL_CURRENT));
builder.addAction(R.drawable.av_next, "", PendingIntent.getBroadcast(context, 4, new Intent(context, NotificationPlayerControlReceiver.class), PendingIntent.FLAG_CANCEL_CURRENT));
builder.addAction(R.drawable.cancel, "", PendingIntent.getBroadcast(context, 5, new Intent(context, NotificationPlayerControlReceiver.class), PendingIntent.FLAG_CANCEL_CURRENT));
前三个按钮显示,最后一个不显示