fragment/src/main/java/androidx/fragment/app/FragmentTransitionImpl.java
void findNamedViews(Map<String, View> namedViews, View view) {
        if (view.getVisibility() == View.VISIBLE) {
            String transitionName = ViewCompat.getTransitionName(view);
            if (transitionName != null) {
                namedViews.put(transitionName, view);
            }
            if (view instanceof ViewGroup) {
                ViewGroup viewGroup = (ViewGroup) view;
                int count = viewGroup.getChildCount();
                for (int i = 0; i < count; i++) {
                    View child = viewGroup.getChildAt(i);
                    findNamedViews(namedViews, child);
                }
            }
        }
    }
/**
     * Finds all views that have transition names in the hierarchy under the given view and
     * stores them in {@code namedViews} map with the name as the key.
     */
Finds all views that have transition names in the hierarchy under the given view and
stores them in  namedViews map with the name as the key.
Finds all views that have transition names in the hierarchy under the given view and stores them in namedViews map with the name as the key .
void findNamedViews(Map<String, View> namedViews, View view) {
        if (view.getVisibility() == View.VISIBLE) {
            String transitionName = ViewCompat.getTransitionName(view);
            if (transitionName != null) {
                namedViews.put(transitionName, view);
            }
            if (view instanceof ViewGroup) {
                ViewGroup viewGroup = (ViewGroup) view;
                int count = viewGroup.getChildCount();
                for (int i = 0; i < count; i++) {
                    View child = viewGroup.getChildAt(i);
                    findNamedViews(namedViews, child);
                }
            }
        }
    }
void findNamedViews ( Map < String , View > namedViews , View view ) { if ( view . getVisibility ( ) == View . VISIBLE ) { String transitionName = ViewCompat . getTransitionName ( view ) ; if ( transitionName != null ) { namedViews . put ( transitionName , view ) ; } if ( view instanceof ViewGroup ) { ViewGroup viewGroup = ( ViewGroup ) view ; int count = viewGroup . getChildCount ( ) ; for ( int i = 0 ; i < count ; i ++ ) { View child = viewGroup . getChildAt ( i ) ; findNamedViews ( namedViews , child ) ; } } } }
Finds all views that have transition names in the hierarchy under the given view and
 stores them in {@code namedViews} map with the name as the key.
Finds all views that have transition names in the hierarchy under the given view and stores them in { @code namedViews } map with the name as the key .