android:pivotX The X coordinate of the pivot for the scale and rotation of the group. android:rotation The degrees of rotation of the group. android:name Defines the name of the group. And the transformations are applied in the order of scale, rotate then translate. The transformations are defined in the same coordinates as the viewport. Defines a group of paths or subgroups, plus transformation information.android:alpha The opacity of this drawable. android:autoMirrored Indicates if the drawable needs to be mirrored when its layout direction is RTL (right-to-left). android:tintMode The Porter-Duff blending mode for the tint color. android:tint The color to apply to the drawable as a tint. Viewport is basically the virtual canvas where the paths are drawn on. android:viewportHeight Used to define the height of the viewport space. android:viewportWidth Used to define the width of the viewport space. This supports all the dimension units, normally specified with dp. android:height Used to define the intrinsic height of the drawable. android:width Used to define the intrinsic width of the drawable. The vector drawable has the following elements: Used to define a vector drawable android:name Defines the name of this vector drawable. VectorDrawable can be defined in an XML file with the element.In other words, if a VectorDrawable is used for different sizes, it is more efficient to create multiple VectorDrawables, one for each size. If these references don't agree upon on the same size, the bitmap will be recreated and redrawn every time size is changed. Therefore, referring to the same VectorDrawable means sharing the same bitmap cache. Note: To optimize for the re-drawing performance, one bitmap cache is created for each VectorDrawable. This lets you create a drawable based on an XML vector graphic.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |