如何在通知中设置文本
如何设置通知的此文本行。 我模拟图像中的内容的代码是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()
编辑
或者没办法,我要使用自定义视图?
感谢Eugen Pechanec
答案是在该链接https://developer.android.com/reference/android/support/v4/app/NotificationCompat.InboxStyle.html