2016-09-06 45 views
0

如何设置通知的文本行。我的代码来模拟一下在图像中是 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

编辑

还是没办法,我已经使用自定义的看法?

+0

的可能的复制[更改通知布局](http://stackoverflow.com/questions/18367631/change-notification-layout) –

+1

https://developer.android.com/reference/android/support/v4/app/NotificationCompat.InboxStyle.html –

回答

相关问题