public static Bitmap createElevationShadow ( @ NonNull final Context context , final int elevation , @ NonNull final Orientation orientation ) { return createElevationShadow ( context , elevation , orientation , false ) ; }
Creates and returns a bitmap which can be used to emulate a shadow of an elevated view on pre - Lollipop devices . By default a non - parallel illumination of the view is emulated which causes the shadow at its bottom to appear a bit more intense than the shadows to its left and right and a lot more intense than the shadow at its top .