In the onDraw() method, why does the supplied Canvas already have scale?

后端 未结 1 1420
花落未央
花落未央 2020-12-20 00:01

In a current test project I have a custom View, that I have named SVGView, that simply paints some vector graphics (Paths, etc.) to the Canvas.

The XML layout file

相关标签:
1条回答
  • 2020-12-20 00:29

    Have you declared a minSdkVersion or targetSdkVersion in your manifest? If you are targeting an API level lower than 4 your app will run in scaled compatibility mode as if it were targeting a G1 screen.

    0 讨论(0)
提交回复
热议问题