Methods Summary |
---|
public static java.lang.Object | addShadow(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 void | initializeResources(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 void | setShadowFocusLevel(java.lang.Object impl, float level)
ViewGroup shadowContainer = (ViewGroup) impl;
shadowContainer.setZ(sNormalZ + level * (sFocusedZ - sNormalZ));
|
public static void | setZ(android.view.View view, float z)
view.setZ(z);
|