code: public int getViewVisibility(@Nullable TransitionValues values) {
          if (values == null) {
              return View.GONE;
          }
          Integer visibility = (Integer) values.values.get(PROPNAME_VISIBILITY);
          if (visibility == null) {
              return View.GONE;
          }
          return visibility;
      }
docs: Returns {@link android.view.View#getVisibility()} for the View at the time the values
  were captured.
  @param values The TransitionValues captured at the start or end of the Transition.
  @return {@link android.view.View#getVisibility()} for the View at the time the values
  were captured.