【问题标题】:How to set Text in Notification如何在通知中设置文本
【发布时间】:2016-09-06 23:08:27
【问题描述】:

如何设置通知的此文本行。我模拟图像中内容的代码是 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()

编辑

或者没办法,我必须使用自定义视图?

【问题讨论】:

标签: java android notifications


【解决方案1】:
猜你喜欢
  • 2016-09-03
  • 1970-01-01
  • 2013-01-24
  • 1970-01-01
  • 2011-11-21
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多