2

I wanted to display a bigPictureStyle Notification in MiUi(don't want to use custom view) using the following code--

NotificationCompat.Builder mBuilder =
            new NotificationCompat.Builder(this)
                    .setSmallIcon(R.mipmap.ic_launcher)
                    .setContentTitle(title)
                    .setContentText(msg)
                    .setStyle(new NotificationCompat.BigPictureStyle()
.bigPicture(BitmapFactory.decodeResource(getResources(), R.drawable.b))
                                        .setBigContentTitle(title));
NotificationManager mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
mNotificationManager.notify(10, mBuilder.build());

It works perfectly on raw android but in Xiaomi MIUI 8 (Android Lollipop based) it shows a shadow at the bottom of expanded notification view as in the picture--

MIUI8 expanded notification having black shadow at the bottom

How to remove this bottom shadow?

Adriaan
  • 17,741
  • 7
  • 42
  • 75
Arnav M.
  • 2,590
  • 1
  • 27
  • 44

1 Answers1

1

The only solution for now is using a custom view with similar looking big content view.

Arnav M.
  • 2,590
  • 1
  • 27
  • 44