NotificationCompat 4.1 SetSmallIcon and SetLargeIcon

  1. In my application I provide large (128×128 px) PNG drawable as small icon, and it shows scaled and without cropping. Is your drawable defined in bitmap file or maybe as XML resource? In XML you can specify several aspects of display (e.g. cropping). Double check your XML or use just PNG/JPG.

  2. As Android API documentation on Notification.setSmallIcon() clearly states:

    Set the small icon resource, which will be used to represent the notification in the status bar. The platform template for the expanded view will draw this icon in the left, unless a large icon has also been specified, in which case the small icon will be moved to the right-hand side.

AFAIK there’s no way you can override the behaviour, unless you provide your own notification template (via Notification.setContent()

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)