Class VectorDrawableRenderer

java.lang.Object
com.android.builder.png.VectorDrawableRenderer
All Implemented Interfaces:
com.android.ide.common.resources.ResourcePreprocessor, Serializable

public class VectorDrawableRenderer extends Object implements com.android.ide.common.resources.ResourcePreprocessor
Generates PNG images (and XML copies) from VectorDrawable files.
See Also:
  • Constructor Details

    • VectorDrawableRenderer

      public VectorDrawableRenderer(int minSdk, boolean supportLibraryIsUsed, @NonNull File outputDir, @NonNull Collection<com.android.resources.Density> densities, @NonNull Supplier<com.android.utils.ILogger> loggerSupplier)
  • Method Details

    • getFilesToBeGenerated

      @NonNull public Collection<File> getFilesToBeGenerated(@NonNull File inputXmlFile) throws IOException
      Specified by:
      getFilesToBeGenerated in interface com.android.ide.common.resources.ResourcePreprocessor
      Throws:
      IOException
    • generateFile

      public void generateFile(@NonNull File toBeGenerated, @NonNull File original) throws IOException
      Specified by:
      generateFile in interface com.android.ide.common.resources.ResourcePreprocessor
      Throws:
      IOException
    • getPreprocessingReasonDescription

      protected String getPreprocessingReasonDescription(@NonNull File inputXmlFile) throws IOException
      Throws:
      IOException