Hi all,

I am writing an app that draws on a Canvas. To know mi working space
dimensions I user canvas.getWidth() and canvas.getHeight().

The problem is that they return 320x480, and the notification bar "pulls
down" my canvas (I already removed the title bar) by an unspecified
amount of pixels.

Is there a way to know how many are those pixels, so to reduce my
drawing area?

I would like to avoid hardcoding a dimension, as I think maybe different
versions of Android could change the bar size or maybe add other bars or
who knows... :)

Thank you very much.
Bye.


-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to