如何在通知中设置文本

时间:2016-09-06 23:08:27

标签: java android notifications

如何设置通知的此文本行。我模拟图像中的内容的代码是 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()

enter image description here

编辑

或者没办法,我使用自定义视图?