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

ShadowHelper

public final class ShadowHelper extends Object
Helper for shadow.

Fields Summary
static final ShadowHelper
sInstance
boolean
mSupportsShadow
boolean
mUsesZShadow
ShadowHelperVersionImpl
mImpl
Constructors Summary
private ShadowHelper()
Returns the ShadowHelper.

        if (Build.VERSION.SDK_INT >= 21) {
            mSupportsShadow = true;
            mUsesZShadow = true;
            mImpl = new ShadowHelperApi21Impl();
        } else if (Build.VERSION.SDK_INT >= 18) {
            mSupportsShadow = true;
            mImpl = new ShadowHelperJbmr2Impl();
        } else {
            mSupportsShadow = false;
            mImpl = new ShadowHelperStubImpl();
        }
    
Methods Summary
public java.lang.ObjectaddShadow(android.view.ViewGroup shadowContainer, boolean roundedCorners)

        return mImpl.addShadow(shadowContainer, roundedCorners);
    
public static android.support.v17.leanback.widget.ShadowHelpergetInstance()

        return sInstance;
    
public voidprepareParent(android.view.ViewGroup parent)

        mImpl.prepareParent(parent);
    
public voidsetShadowFocusLevel(java.lang.Object impl, float level)

        mImpl.setShadowFocusLevel(impl, level);
    
public voidsetZ(android.view.View view, float z)
Set the view z coordinate.

        mImpl.setZ(view, z);
    
public booleansupportsShadow()

        return mSupportsShadow;
    
public booleanusesZShadow()

        return mUsesZShadow;