开发者

What is the best way to create a canvas drawing that fits the activity?

I'm trying to create a canvas drawing in android but inside the emulator 开发者_如何学Cit looks centered. When deploy in a cell phone or tablet, the drawing is at a corner. I read that you need to override onMeasure but not sure how that will work when you draw the bitmap / or set layout parameters.


You can always have a View as Fill_Parent and draw on the view's canvas.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜