You are mistaking the size of the Canvas with the size of your View. There is usually one Canvas shared by all the Views, so the Canvas is as big as the window.
On Sat, Oct 2, 2010 at 4:50 PM, dashman <erjdri...@gmail.com> wrote: > > i have a View subclass and i overrode the onDraw method > > void onDraw(Canvas canvas) > > when i do a canvas.getHeight() - i get 480 in the emulator. > > that's the full screen height - i'm pretty sure the canvas > does not include the title bar etc. > > shouldn't canvas.getHeight() return the true height of > the canvas paintable area > > i.e. height of the screen - title height - notification bar > height > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en