title: Android Color Notification Icon
body: <p>I'm working on an app where I create a notification for the user. I want the icon to appear as white when it's in the status bar, but colored blue when it's being displayed in the drop down notification menu. Here's an example of the same thing being done by the Google Store app.</p>
  
  <p>White notification in status bar:</p>
  
  <p><a href="https://i.stack.imgur.com/fcIS1.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/fcIS1.jpg" alt="enter image description here"></a></p>
  
  <p>Colored notification in drop down menu:</p>
  
  <p><a href="https://i.stack.imgur.com/tYmdz.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/tYmdz.jpg" alt="enter image description here"></a></p>
  
  <p>How can I replicate this? What properties do I have to set?</p>
  
  <p><strong>Edit:</strong>
  Here's my current code - I made the image all white with a transparent background, so it looks fine in the status bar, but in the notification drop, the image is still the same white color:</p>
  
  <pre><code>private NotificationCompat.Builder getNotificationBuilder() {
          return new NotificationCompat.Builder(mainActivity)
                  .setDeleteIntent(deletedPendingIntent)
                  .setContentIntent(startChatPendingIntent)
                  .setAutoCancel(true)
                  .setSmallIcon(R.drawable.skylight_notification)
                  .setColor(ContextCompat.getColor(mainActivity, R.color.colorPrimary))
                  .setContentTitle(mainActivity.getString(R.string.notification_title))
                  .setContentText(mainActivity.getString(R.string.notification_prompt));
      }
  </code></pre>