4

Is it possible to keep expand state by default for setCustomBigContentView? It gets collapsed by default when I use setCustomBigContentView method even the size lower than default notification height.

RemoteViews contentView = new RemoteViews(context.getPackageName(), 
                          R.layout.notification_layout);

NotificationCompat.Builder builder = builder
                .setSmallIcon(R.mipmap.ic_launcher_round)
                .setCustomBigContentView(contentView)
                .setOngoing(true);

Note: Some users blindly search for similar headline instead of understanding the code and situation. I feel sorry for them.

1

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.