code: 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);
      }
docs: Obtains the duration of the animation, which may be used to changed the visibility of the
  floating action button, from a specific typed array.
  
  @param typedArray
  The typed array, the animation duration should be obtained from, as an instance of
  the class {@link TypedArray}. The typed array may not be null