Manu_29295
Lurker
Hi,
I created a custom notification. However, I like to use the same padding for left- and right-padding that is used for standard notifications. I noticed that this padding can be different depending on the device.
I found the followinf notification style that applies the correct left-right-padding, but it also adds additional stuff that I do not like. Example for the style:
NotificationCompat.Style style = new NotificationCompat.DecoratedCustomViewStyle();
builder.setStyle(style);
So I basically would like to apply the same left/right padding that is applied by the DecoratedCustomViewStyle, but without all that extra stuff.
Does anyone has experience how I can get the correct left-right padding for the notification?
Thanks in advance &
Best regards,
Manuel
I created a custom notification. However, I like to use the same padding for left- and right-padding that is used for standard notifications. I noticed that this padding can be different depending on the device.
I found the followinf notification style that applies the correct left-right-padding, but it also adds additional stuff that I do not like. Example for the style:
NotificationCompat.Style style = new NotificationCompat.DecoratedCustomViewStyle();
builder.setStyle(style);
So I basically would like to apply the same left/right padding that is applied by the DecoratedCustomViewStyle, but without all that extra stuff.
Does anyone has experience how I can get the correct left-right padding for the notification?
Thanks in advance &
Best regards,
Manuel