leanback/src/main/java/androidx/leanback/widget/ShadowHelperApi21.java
public static Object addDynamicShadow(
            View shadowContainer, float unfocusedZ, float focusedZ, int roundedCornerRadius) {
        if (roundedCornerRadius > 0) {
            RoundedRectHelperApi21.setClipToRoundedOutline(shadowContainer, true,
                    roundedCornerRadius);
        } else {
            shadowContainer.setOutlineProvider(sOutlineProvider);
        }
        ShadowImpl impl = new ShadowImpl();
        impl.mShadowContainer = shadowContainer;
        impl.mNormalZ = unfocusedZ;
        impl.mFocusedZ = focusedZ;
        shadowContainer.setZ(impl.mNormalZ);
        return impl;
    }
/* add shadows and return a implementation detail object */
add shadows and return a implementation detail object
add shadows and return a implementation detail object
public static Object addDynamicShadow(
            View shadowContainer, float unfocusedZ, float focusedZ, int roundedCornerRadius) {
        if (roundedCornerRadius > 0) {
            RoundedRectHelperApi21.setClipToRoundedOutline(shadowContainer, true,
                    roundedCornerRadius);
        } else {
            shadowContainer.setOutlineProvider(sOutlineProvider);
        }
        ShadowImpl impl = new ShadowImpl();
        impl.mShadowContainer = shadowContainer;
        impl.mNormalZ = unfocusedZ;
        impl.mFocusedZ = focusedZ;
        shadowContainer.setZ(impl.mNormalZ);
        return impl;
    }
public static Object addDynamicShadow ( View shadowContainer , float unfocusedZ , float focusedZ , int roundedCornerRadius ) { if ( roundedCornerRadius > 0 ) { RoundedRectHelperApi21 . setClipToRoundedOutline ( shadowContainer , true , roundedCornerRadius ) ; } else { shadowContainer . setOutlineProvider ( sOutlineProvider ) ; } ShadowImpl impl = new ShadowImpl ( ) ; impl . mShadowContainer = shadowContainer ; impl . mNormalZ = unfocusedZ ; impl . mFocusedZ = focusedZ ; shadowContainer . setZ ( impl . mNormalZ ) ; return impl ; }
add shadows and return a implementation detail object
add shadows and return a implementation detail object