private void obtainVisibilityAnimationDuration ( @ NonNull final TypedArray typedArray ) { int defaultAnimationDuration = getResources ( ) . getInteger ( R . integer . floating_action_button_visibility_animation_duration ) ; int duration = typedArray . getInteger ( R . styleable . FloatingActionButton_visibilityAnimationDuration , defaultAnimationDuration ) ; setVisibilityAnimationDuration ( duration ) ; }
Obtains the duration of the animation which may be used to changed the visibility of the floating action button from a specific typed array .