I'm trying to figure out what is the image size used for the notifications in ICS+
As shown here :
I've tried setting the ic_launcher
but it was too big and appear to be cut on the image. (48dp for MDPI)
So now i'm using ic_stat_notify
which is 24dp for MDPI and it looks pretty small.
I went through all the documentation and I couldn't find any mention of these icons size.
Thank you
To remove a persistent notification on Android as fast as possible, first, press-and-hold on it. Alternatively, swipe the notification left or right to reveal a gear icon on either side, and then tap on it. The notification expands. Tap on “Turn off notifications” at the bottom.
You can find more about these icons dimensions in Iconography part of the documentation here
You can use this website in order to calculate the exact dimensions
If you are implementing your view through a xml layout, you can always scale the ImageView to fit a specific size.
From Android: resizing imageview in XML comes the following example:
<ImageView [...]
android:maxWidth="42dp"
android:maxHeight="42dp"
android:scaleType="fitCenter"
android:adjustViewBounds="true"
/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With