Search code examples
androidandroid-notificationsandroid-notification-bar

In android, how to set the 2 small icons visible in the notification


In android notification, it's seam their is 3 different icons (see the picture below). I know how to set the large icon (via setlargeicon), however i don't know how to set the both 2 small icons as their is only one procedure setSmallIcon available.

enter image description here

enter image description here


Solution

  • It is the same setSmallIcon for both locations. However, you can also use setColor() to set the background color on the notification - that is how the lower icon gets the blue background.