VectorDrawable is not center aligned

后端 未结 5 1483
鱼传尺愫
鱼传尺愫 2021-02-04 09:31

I\'ve created a VectorDrawable file with the path data i had. But the issue is that image is not aligning at the centre of the total area and instead it\'s created as top-left a

5条回答
  •  忘掉有多难
    2021-02-04 10:09

    
    
    
    
    

    Focus on the Group tag, pivotX and pivotY will position the image, if viewportHeight and viewportWidth is 24 that means pivotX and pivotY 12 will place it in center because 24/2 is 12 :)

    Another important tag, scaleX and scaleY will scale the size of your image.

提交回复
热议问题