开发者

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

开发者 https://www.devze.com 2023-04-02 08:33 出处:网络
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 ov

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

精彩评论

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

关注公众号