public static void inflate(@NonNull Drawable drawable, @NonNull Resources res,
                               @NonNull XmlPullParser parser, @NonNull AttributeSet attrs,
                               @Nullable Resources.Theme theme)
            throws XmlPullParserException, IOException {
        if (Build.VERSION.SDK_INT >= 21) {
            drawable.inflate(res, parser, attrs, theme);
        } else {
            drawable.inflate(res, parser, attrs);
        }
    }
Inflate this Drawable from an XML resource optionally styled by a theme.

@param res    Resources used to resolve attribute values
@param parser XML parser from which to inflate this Drawable
@param attrs  Base set of attribute values
@param theme  Theme to apply, may be null
@throws XmlPullParserException
@throws IOException
android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/compat/DrawableCompat.java