How can i add padding vector file in android

后端 未结 3 561
盖世英雄少女心
盖世英雄少女心 2021-02-01 01:30

How can i add paddingleft,Right,Top and bottom veriable in my vector file.

I changed

android:viewportWidth

and

3条回答
  •  萌比男神i
    2021-02-01 02:12

    wrap your path tags with group tag. then and add attribute scaleX, scaleY, pivotX and pivotY in group tag to create padding effect. like this:

    
        
            
        
    
    
    

    *pivot values depends on size of width and height of your vector

提交回复
热议问题