inflate

open fun inflate(@NonNull drawable: @NonNull Drawable, @NonNull res: @NonNull Resources, @NonNull parser: @NonNull XmlPullParser, @NonNull attrs: @NonNull AttributeSet, theme: @Nullable Resources.Theme)(source)

Inflate this Drawable from an XML resource optionally styled by a theme.

Parameters

drawable

drawable to inflate.

res

Resources used to resolve attribute values

parser

XML parser from which to inflate this Drawable

attrs

Base set of attribute values

theme

Theme to apply, may be null

Throws