resolveThemeDuration

open fun resolveThemeDuration(@NonNull context: Context, @AttrRes attrResId: Int, defaultDuration: Int): Int

Resolve a duration from a material duration theme attribute.

Return

the resolved int duration which attrResId points to or the defaultDuration if resolution was unsuccessful.

Parameters

context

the context from where the theme attribute will be resolved.

attrResId

the motionDuration* theme attribute to resolve

defaultDuration

the duration to be returned if unable to resolve attrResId