1. How Vector Asset is different from Image Asset?
Image Asset Studio helps us create different types of icons with different densities and shows us exactly where they’ll be placed in our project. It includes tools for adjusting our icons and adding backdrops, all while displaying the result in a preview pane, so they appear exactly as we intended. Vector Asset Studio helps to add a vector graphic to our project as an XML file that describes the image.
2. Benefits of Vector Assets
Image scalability is the major advantage of using the vector drawable. The same file can be resized for different screen sizes without loss of image quality which results in smaller APK files and less developer maintenance. We can also use vector images for animation.
Step by Step Implementation
Steps:
- Right-click on drawable > New > Vector Asset
- After clicking on Vector Asset a new dialog box is opened that is shown below.
- Click on Clip Art and Search for the Icons and click ok button.
- Change the color of the icon.
- Icon color can be changed either by directly adding color code or by adjusting the color using brightness and then click on choose button.
- Click Next
- Now Click on Finish Button
- Icon is created in the drawable folder as shown in the image