Issue
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
the default notification bar height is 38 in hdpi, 25 in mdpi and 19 in ldpi
Answered By - Bill Gary
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.