android中的SVG图像的各个属性意义
16lz
2021-01-23
android中的矢量图,一个矢量图中的各个属性是什么意义(只关注重要的属性)
标签,并给它们设置一些共同的属性 android:name="group_name" //这个name很有用,在设置objectAnimator的时候用来区分给那个部分施加动画 android:pivotY="50" //这个设置这个group的中心点的X坐标,取值范围为0到100,在做rotation时有用 android:pivotX="50" //这个设置这个group的中心点的Y坐标,取值范围为0到100,在做rotation时有用 android:translateX="20" //将整个group在X轴方向平移多少像素 android:translateY="30" //将整个group在Y轴方向平移多少像素 android:rotation="90" //将整个group以中心点左边旋转的角度,360为一圈 android:scaleX="0.5" //横坐标的缩放比例 , 取值1表示100% android:scaleY="0.3"> //纵坐标的缩放比例,取值0.5表示50%,取值1.5表示150%
配图
鉴于
android:trimPathStart
android:trimPathEnd
android:trimPathOffset
三个属性比较难懂,特地配了三个图片来表示下
android:trimPathStart="0.1"
此图表示从path的0%开始去除掉0%位置到10%位置的path
trimPathStartandroid:trimPathStart="0.1"android:trimPathOffset="0.5"
此图表示,先把path的原点移动到50%的位置,再以此为原点去除掉0%位置到10%位置的path
trimPathStart和trimPathOffsetandroid:trimPathEnd="0.9"android:trimPathOffset="0.5"
此图表示,先把path的原点移动到50%的位置,再以此为原点去除掉90%位置到100%位置的path
trimPathEnd和trimPathOffset更多相关文章
- ImageView之android:tint=" "属性方法作用详解
- android之LinearLayout中android:layout_weight属性理解
- Android中的shape中的属性大全
- AndroidManifest中activity属性设置大全
- Android manifest属性总结
- Android 关于WebView的相关属性
- android TabWidget 位置