【发布时间】:2016-05-18 20:01:25
【问题描述】:
我正在使用代码
final Notification notifyDetails = new NotificationCompat.Builder(context)
.setContentTitle(mTitle)
.setContentText(mDesc)
.setSmallIcon(R.mipmap.ic_launcher)
.setTicker(mDesc)
.setStyle(new NotificationCompat.BigPictureStyle()
.bigPicture(myBitmap)
.setSummaryText(mDesc))
.setContentIntent(nIntent)
.addAction(R.drawable.share, "Share", nIntent)
.build();
mNotificationManager.notify(SIMPLE_NOTFICATION_ID, notifyDetails);
如何显示我的通知?我google了,没解决。请任何人为此工作,请分享您的想法。
提前非常感谢
【问题讨论】:
-
你想达到什么不同?
-
内容文本应该在底部,分享动作应该在顶部,背景白色不应该显示......
-
stackoverflow.com/a/16168704/1979882 阅读此内容。你必须使用自定义视图
标签: android notifications android-notifications