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

ShadowHelperJbmr2

public class ShadowHelperJbmr2 extends Object

Fields Summary
Constructors Summary
Methods Summary
public static java.lang.ObjectaddShadow(android.view.ViewGroup shadowContainer)

        shadowContainer.setLayoutMode(ViewGroup.LAYOUT_MODE_OPTICAL_BOUNDS);
        LayoutInflater inflater = LayoutInflater.from(shadowContainer.getContext());
        inflater.inflate(R.layout.lb_shadow, shadowContainer, true);
        ShadowImpl impl = new ShadowImpl();
        impl.mNormalShadow = shadowContainer.findViewById(R.id.lb_shadow_normal);
        impl.mFocusShadow = shadowContainer.findViewById(R.id.lb_shadow_focused);
        return impl;
    
public static voidprepareParent(android.view.ViewGroup parent)

        parent.setLayoutMode(ViewGroup.LAYOUT_MODE_OPTICAL_BOUNDS);
    
public static voidsetShadowFocusLevel(java.lang.Object impl, float level)

        ShadowImpl shadowImpl = (ShadowImpl) impl;
        shadowImpl.mNormalShadow.setAlpha(1 - level);
        shadowImpl.mFocusShadow.setAlpha(level);