Skip to content Skip to sidebar Skip to footer

Customizing The Background Of An Android Notification Tile

I noticed that one of my Android apps has set a custom background for its notification tile, as you can see in the screenshot below: How did this application set a custom backgrou

Solution 1:

NotificationCompat
     .Builder(this, channelId)
     //...
     .setStyle(NotificationCompat.DecoratedCustomViewStyle())
     .setColor(resources.getColor(R.color.black))
     .setColorized(true)
     .build()

Post a Comment for "Customizing The Background Of An Android Notification Tile"