Android Studio Create Small Notification Icon

May 9, 2019

Android Studio -> File -> New -> Image Assets -> Icon Type: Notification Icon

To be used at NotificationCompat.Builder.setSmallIcon

val builder = NotificationCompat.Builder(context!!, CHANNEL_ID)
    .setSmallIcon(R.drawable.ic_notification_icon)
    .setContentTitle("Title")
    .setContentText("Content")
    .setPriority(NotificationCompat.PRIORITY_DEFAULT)

NOTE: Refer Setup Android Notification.

This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.