FileDocCategorySizeDatePackage
ShadowHelperApi21.javaAPI DocAndroid 5.1 API2600Thu Mar 12 22:22:56 GMT 2015android.support.v17.leanback.widget

ShadowHelperApi21

public class ShadowHelperApi21 extends Object

Fields Summary
static int
sNormalZ
static int
sFocusedZ
static final android.view.ViewOutlineProvider
sOutlineProvider
Constructors Summary
Methods Summary
public static java.lang.ObjectaddShadow(android.view.ViewGroup shadowContainer, boolean roundedCorners)

        initializeResources(shadowContainer.getResources());
        if (roundedCorners) {
            RoundedRectHelperApi21.setRoundedRectBackground(shadowContainer,
                    Color.TRANSPARENT);
        } else {
            shadowContainer.setOutlineProvider(sOutlineProvider);
        }
        shadowContainer.setZ(sNormalZ);
        shadowContainer.setTransitionGroup(true);
        return shadowContainer;
    
private static voidinitializeResources(android.content.res.Resources res)


         
        if (sNormalZ == Integer.MIN_VALUE) {
            sNormalZ = (int) res.getDimension(R.dimen.lb_material_shadow_normal_z);
            sFocusedZ = (int) res.getDimension(R.dimen.lb_material_shadow_focused_z);
        }
    
public static voidsetShadowFocusLevel(java.lang.Object impl, float level)

        ViewGroup shadowContainer = (ViewGroup) impl;
        shadowContainer.setZ(sNormalZ + level * (sFocusedZ - sNormalZ));
    
public static voidsetZ(android.view.View view, float z)

        view.setZ(z);