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 wrote:
>
> i have a View subclass and i overrode the onDraw method
>
> void onDraw(Canvas canva
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
2 matches
Mail list logo