2016-09-06 86 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 –

回答