android - BigPictureStyle Notification not showing properly in Xiaomi MIUI-8 -


i wanted display bigpicturestyle notification in miui(don't want use custom view) using 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 on raw android in xiaomi miui 8 (android lollipop based) shows shadow @ bottom of expanded notification view in picture--

miui8 expanded notification having black shadow @ bottom

how remove bottom shadow?

the solution using custom view similar looking big content view.


Comments