Icon gets small in notification

1

I have a simple notification, but the icon does not fill the whole part. I generated it through Android Asset and put each resolution in its respective folder in mipmap.

Android 4.1 Notification

Android5.0Notification

Notificationnoti=newNotification.Builder(MainActivity.this).setTicker("BPF Denúncia")
                .setContentTitle("BPF Denúncia")
                .setContentText("Há Uma Nova Denúncia Contra Você!")
                .setSmallIcon(R.mipmap.notification)
                .setContentIntent(pIntent).getNotification();

How do I resolve to fill in the entire Notification space?

    
asked by anonymous 07.07.2016 / 01:55

1 answer

1

You need to set the big icon for your notification with setLargeIcon ". If you do not set it, small is used instead and grows alone.

    
07.07.2016 / 02:50