private void adaptElevation ( final int elevation , final boolean parallelLight ) { elevationTextView . setText ( String . format ( getString ( R . string . elevation ) , elevation ) ) ; elevationLeft . setShadowElevation ( elevation ) ; elevationLeft . emulateParallelLight ( parallelLight ) ; elevationTopLeft . setShadowElevation ( elevation ) ; elevationTopLeft . emulateParallelLight ( parallelLight ) ; elevationTop . setShadowElevation ( elevation ) ; elevationTop . emulateParallelLight ( parallelLight ) ; elevationTopRight . setShadowElevation ( elevation ) ; elevationTopRight . emulateParallelLight ( parallelLight ) ; elevationRight . setShadowElevation ( elevation ) ; elevationRight . emulateParallelLight ( parallelLight ) ; elevationBottomRight . setShadowElevation ( elevation ) ; elevationBottomRight . emulateParallelLight ( parallelLight ) ; elevationBottom . setShadowElevation ( elevation ) ; elevationBottom . emulateParallelLight ( parallelLight ) ; elevationBottomLeft . setShadowElevation ( elevation ) ; elevationBottomLeft . emulateParallelLight ( parallelLight ) ; }
Adapts the elevation .