0

How can I set this text line of the notification. my code to simulate what is in the image is 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

EDIT

or no way , I've to use custom view ?

Islam Salah
  • 953
  • 11
  • 22

1 Answers1

0

Thanks to Eugen Pechanec

the answer is in that link https://developer.android.com/reference/android/support/v4/app/NotificationCompat.InboxStyle.html

Community
  • 1
  • 1
Islam Salah
  • 953
  • 11
  • 22