如何在通知中设置文本
问题描述:
如何设置通知的文本行。我的代码来模拟一下在图像中是 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()
如何在通知中设置文本
编辑
还是没办法,我已经使用自定义的看法?
的可能的复制[更改通知布局](http://stackoverflow.com/questions/18367631/change-notification-layout) –
https://developer.android.com/reference/android/support/v4/app/NotificationCompat.InboxStyle.html –