Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
The Android VectorDrawable builds upon the SVG file format. (https://developer.android.com/reference/android/graphics/drawable/VectorDrawable) android:pathData Defines path data using exactly s...
Answer
#1: Initial revision
The Android VectorDrawable builds upon the SVG file format. (https://developer.android.com/reference/android/graphics/drawable/VectorDrawable) > android:pathData Defines path data using exactly same format as "d" attribute in the SVG's path data. This is defined in the viewport space. You can read full documentation about SVG file formats for paths here: https://www.w3.org/TR/SVG/paths.html To get you started, the contents are a list of commands and locations. For the ones you asked about: * M - Move To - Moves the pen to a location * C - Cubic Bezier Curve - Draws a curve from one point to a second using control points to define the curve * Z - Close Path - Closes the path you are drawing.