vectorDrawableToBitmap

public final Bitmap vectorDrawableToBitmap(Context context, Integer drawable)

Convert a drawable resource to a bitmap

Parameters

context

The context

drawable

The drawable resource ID