| 1 |
R.styleable.vectordrawable_viewportwidth
The name of the resource is not vectordrawable_viewportwidth
But the statement under Attrs.xml.
<!--drawable used to draw vector paths. - <declare-styleablename= "Vectordrawable"> <!--If Set, specifies the color to apply to the drawable as a tint. By default, no tint is applied. May is a color state list. - <attrname= "tint" /> <!--When a tint color was set, specifies its porter-duff blending mode. The default value is src_in, which treats the drawable as an alpha mask. - <attrname= "Tintmode" /> <!--indicates if the drawable needs to being mirrored when it layout direction is RTL (right-to-left). - <attrname= "Automirrored" /> <!--The intrinsic width of the Vector drawable. - <attrname= "width" /> <!--The intrinsic height of the Vector drawable. - <attrname= "height" /> <!--The width of the canvas the drawing is on. - <attrname= "Viewportwidth"format= "float"/> <!--The height of the canvas the drawing is on. - <attrname= "Viewportheight"format= "float"/> <!--The name of this vector drawable - <attrname= "Name" /> <!--the opacity of the whole vector drawable, as a value between 0 (completely transparent) and 1 (completely opaque). - <attrname= "Alpha" /> </declare-styleable>
|
Pathrenderer.mviewportwidth = A.getfloat (
R.styleable.vectordrawable_viewportwidth, Pathrenderer.mviewportwidth);
|
|
|
|
|
|
|
|
|
|
Android Source Vecotordrawable