@Nullable
    TransitionValues getMatchedTransitionValues(@NonNull View view, boolean viewInStart) {
        if (mParent != null) {
            return mParent.getMatchedTransitionValues(view, viewInStart);
        }
        ArrayList<TransitionValues> lookIn = viewInStart ? mStartValuesList : mEndValuesList;
        if (lookIn == null) {
            return null;
        }
        int count = lookIn.size();
        int index = -1;
        for (int i = 0; i < count; i++) {
            TransitionValues values = lookIn.get(i);
            if (values == null) {
                // Null values are always added to the end of the list, so we know to stop now.
                return null;
            }
            if (values.view == view) {
                index = i;
                break;
            }
        }
        TransitionValues values = null;
        if (index >= 0) {
            ArrayList<TransitionValues> matchIn = viewInStart ? mEndValuesList : mStartValuesList;
            values = matchIn.get(index);
        }
        return values;
    }
@ Nullable TransitionValues getMatchedTransitionValues ( @ NonNull View view , boolean viewInStart ) { if ( mParent != null ) { return mParent . getMatchedTransitionValues ( view , viewInStart ) ; } ArrayList < TransitionValues > lookIn = viewInStart ? mStartValuesList : mEndValuesList ; if ( lookIn == null ) { return null ; } int count = lookIn . size ( ) ; int index = - 1 ; for ( int i = 0 ; i < count ; i ++ ) { TransitionValues values = lookIn . get ( i ) ; if ( values == null ) { return null ; } if ( values . view == view ) { index = i ; break ; } } TransitionValues values = null ; if ( index >= 0 ) { ArrayList < TransitionValues > matchIn = viewInStart ? mEndValuesList : mStartValuesList ; values = matchIn . get ( index ) ; } return values ; }
Find the matched start or end value for a given View. This is only valid
after playTransition starts. For example, it will be valid in
{@link #createAnimator(android.view.ViewGroup, TransitionValues, TransitionValues)}, but not
in {@link #captureStartValues(TransitionValues)}.

@param view The view to find the match for.
@param viewInStart Is View from the start values or end values.
@return The matching TransitionValues for view in either start or end values, depending
on viewInStart or null if there is no match for the given view.