resolve Theme Duration
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.
attr Res Id
the motionDuration*
theme attribute to resolve
default Duration
the duration to be returned if unable to resolve attrResId