有没有办法让Android通知的背景透明?我正在使用带有布局和NotificationCompat的RemoteViews创建通知:
布局的LinearLayout的背景设置为透明。但在Lollipop中,背景总是显示为白色。
RemoteViews rv = new RemoteViews(getPackageName(), R.layout.notification_layout);
NotificationCompat.Builder mBuilder =
new NotificationCompat.Builder(this)
.setSmallIcon(R.drawable.ic_launcher)
.setContent(rv);
布局的LinearLayout的背景设置为透明。但在Lollipop中,背景总是显示为白色。