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--
how remove bottom shadow?
the solution using custom view similar looking big content view.
Comments
Post a Comment