I've just been trying to work this out too, I loaded the layout (hidden) in the activity and measured and stored that. It seems to be the same size if I display it and using it to draw onto a canvas doesn't seem to cause issues.
May not be the same for all devices, I haven't tested that yet. That's next.