fragment/src/main/java/androidx/fragment/app/FragmentManager.java
private void makeRemovedFragmentsInvisible(ArraySet<Fragment> fragments) {
        final int numAdded = fragments.size();
        for (int i = 0; i < numAdded; i++) {
            final Fragment fragment = fragments.valueAt(i);
            if (!fragment.mAdded) {
                final View view = fragment.getView();
                fragment.mPostponedAlpha = view.getAlpha();
                view.setAlpha(0f);
            }
        }
    }
/**
     * Any fragments that were removed because they have been postponed should have their views
     * made invisible by setting their alpha to 0.
     *
     * @param fragments The fragments that were added during operation execution. Only the ones
     *                  that are no longer added will have their alpha changed.
     */
Any fragments that were removed because they have been postponed should have their views
made invisible by setting their alpha to 0.

@param fragments The fragments that were added during operation execution. Only the ones
that are no longer added will have their alpha changed.
Any fragments that were removed because they have been postponed should have their views made invisible by setting their alpha to 0 . @param fragments The fragments that were added during operation execution . Only the ones that are no longer added will have their alpha changed .
private void makeRemovedFragmentsInvisible(ArraySet<Fragment> fragments) {
        final int numAdded = fragments.size();
        for (int i = 0; i < numAdded; i++) {
            final Fragment fragment = fragments.valueAt(i);
            if (!fragment.mAdded) {
                final View view = fragment.getView();
                fragment.mPostponedAlpha = view.getAlpha();
                view.setAlpha(0f);
            }
        }
    }
private void makeRemovedFragmentsInvisible ( ArraySet < Fragment > fragments ) { final int numAdded = fragments . size ( ) ; for ( int i = 0 ; i < numAdded ; i ++ ) { final Fragment fragment = fragments . valueAt ( i ) ; if ( ! fragment . mAdded ) { final View view = fragment . getView ( ) ; fragment . mPostponedAlpha = view . getAlpha ( ) ; view . setAlpha ( 0f ) ; } } }
Any fragments that were removed because they have been postponed should have their views
 made invisible by setting their alpha to 0.
Any fragments that were removed because they have been postponed should have their views made invisible by setting their alpha to 0 .