- Enclosing class:
- VdPreview
public static class VdPreview.TargetSize
extends java.lang.Object
Encapsulates the information used to determine the preview image size. The reason we have
different ways here is that both Studio UI and build process need to use this common code
path to generate images for vector drawables. When maxDimension is not zero, use
maxDimension as the maximum dimension value while keeping the aspect ratio.
Otherwise, use imageScale to scale the image based on the XML's size information.