Custom notification layout gives unnecessary margin
问题 I am creating a custom notification layout for my application. NotificationCompat.Builder builder = new NotificationCompat.Builder(context, NOTIFICATION_CHANNEL_ID) .setSmallIcon(R.drawable.ic_notification_icon) .setPriority(NotificationCompat.PRIORITY_DEFAULT) .setCustomContentView(notificationLayoutCollapsed) .setOngoing(playing) .setCustomBigContentView(notificationLayoutExpanded) .setStyle(new NotificationCompat.DecoratedCustomViewStyle()) .setContentIntent(pendingIntent); My notification