resolveThemeSpringForce

open fun resolveThemeSpringForce(@NonNull context: Context, @AttrRes attrResId: Int, @StyleRes defStyleRes: Int): SpringForce

Resolve a SpringForce object from a Material spring theme attribute.

Return

a SpringForce object configured using the stiffness and damping from the resolved Material spring attribute

Parameters

context

the context from where the theme attribute will be resolved

attrResId

the motionSpring* theme attribute to resolve into a SpringForce object

defStyleRes

a MaterialSpring style to load if attrResId cannot be resolved