I have built a notification, but when I set the large icon, it doesn't fit to the bounds. I would set it to display as expected.
Here is the code where the notification is created:
NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(getApplicationContext())
.setSmallIcon(R.drawable.ic_launcher)
.setLargeIcon(image)
.setContentTitle(appName)
.setContentText(message)
.setSound(defaultSoundUri)
.setPriority(NotificationCompat.PRIORITY_HIGH)
.setContentIntent(pendingIntent);
Try using Custom layout to show Notification :
This may help you :