Nathan Fraenkel
Nathan Fraenkel

Reputation: 3462

Android notification small icon zooms in in notification drawer

So I am generating an Android notification and setting the small icon property to an image that is 400x400 pixels. The image looks as it's supposed to in the notification bar (see below - it's the yellow circle with green/red outline thing).

enter image description here

The problem is that when you pull down the notification drawer, the image for the notification's small icon is zoomed in and doesn't look as it should (see image 2). I want it to be that exact same image as the icon in the notification drawer, too.

enter image description here

Does anyone know why this happens / how to make the original image be the actual small icon?? Please let me know :( thanks.

Upvotes: 1

Views: 1240

Answers (1)

Jorgesys
Jorgesys

Reputation: 126455

According the Guidelines :

Notification icons must be 24x24 dp.

400x400 px sounds a very big size, i use in some applications the launcher icons, even the xxhdpi (144x144) and xxxhdpi (192x192) will load with no problem.

Upvotes: 2

Related Questions