【发布时间】:2016-09-06 23:08:27
【问题描述】:
如何设置通知的此文本行。我模拟图像中内容的代码是
Notification notification = new NotificationCompat.Builder(context)
.setSmallIcon(R.drawable.ic_launcher)
.setContentTitle("Michael")
.setContentText("Dinner tonight?")
.setSubText("let's grab some dinner.Are you free?")
.setLargeIcon(myBitMap)
.addAction(R.drawable.ic_archive, "ARCHIVE", null)
.addAction(R.drawable.ic_reply, "REPLY", null)
.build()
编辑
或者没办法,我必须使用自定义视图?
【问题讨论】:
标签: java android notifications