我已经使用大图片样式构建了推送通知,如图所示here http://developer.android.com/reference/android/app/Notification.BigPictureStyle.html。
是否可以混合大图片样式和大文本样式,如附图所示?我该怎么做?
你应该能够这样做:
Notification notif = new Notification.Builder(context)
.setContentTitle("Title")
.setContentText("content")
.setSmallIcon(R.drawable.ic_small)
.setLargeIcon(bitmap)
.setStyle(new Notification.BigPictureStyle()
.bigPicture(bigBitmap)
.setBigContentTitle("big title"))
.build();
Source http://developer.android.com/reference/android/app/Notification.BigPictureStyle.html
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)