resolveThemeInterpolator

open fun resolveThemeInterpolator(@NonNull context: Context, @AttrRes attrResId: Int, @NonNull defaultInterpolator: TimeInterpolator): TimeInterpolator

Load an interpolator from a material easing theme attribute.

Return

the resolved TimeInterpolator which attrResId points to or the defaultInterpolator if resolution was unsuccessful.

Parameters

context

context from where the theme attribute will be resolved

attrResId

the motionEasing* theme attribute to resolve

defaultInterpolator

the interpolator to be returned if unable to resolve attrResId.