title: How to create Notification.contentView in android Nougat and above?
body: <p>I use <code>Notification.contentView</code> to replicate notification views:  </p>
  
  <pre><code>View notificationView = notification.contentView.apply(context, parent);
  </code></pre>
  
  <p>Unfortunately as of version N, <code>Notification.contentView</code> may be null and deprecated, so how can I create <code>Notification.contentView</code> manually?</p>
  
  <p>Generally I create notification this way:  </p>
  
  <pre><code>NotificationCompat.Builder builder = new NotificationCompat.Builder(this, NOTIFICATION_CHANNEL_ID);
  builder.setAutoCancel(true)
          .setColor(ContextCompat.getColor(this, R.color.colorAccent))
          .setContentTitle(title)
          .setContentText(text)
          .setDefaults(Notification.DEFAULT_ALL)
          .setWhen(when)
          .setSmallIcon(smallIcon);
  </code></pre>
  
  <p>Then if I create the contentView manually, what can I do to map all the above settings?<br>
  Important note: I don't call setCustomContentView, I want to reproduce a contentView for the standard notification.</p>