Android notification height and width

I'm making an app that displays a custom notification in the notification bar, and would like to show the user a preview of their notification from inside the activity that creates the notification.

Is there a way through the Android API to get the height in pixels, or dip of a notification, so that I can match what the notification would look like as accurately as possible? Or does anyone know the height of notifications in Android 3.0 and later?


Solution 1:

the default notification bar height is 38 in hdpi, 25 in mdpi and 19 in ldpi