What is the impact of viewportwidth/height on Android drawables

后端 未结 4 1857
迷失自我
迷失自我 2020-12-23 12:59

I have an vector drawable I imported from an SVG asset. Sometimes, I have to adjust the size. Usually I update width and height. What I can\'t work out is how viewportwidth

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-23 13:54

    Let's assume that the apple inside the canvas is your main vector drawable.Then h and w which are the height and width of the canvas respectively. So finally that h and w will be your drawable's viewportHeight and viewportWidth respectively

提交回复
热议问题