getShadowTop

open fun getShadowTop(shadowSize: Float, shadowDy: Float): Int

Return

Shadow applied to the top side of the element.

Parameters

shadowSize
shadowDy

Light source offset applied vertically, i.e. if shadowDy is 0, the shadows on the top and bottom sides are both equal to shadowSize. If shadowDy is positive, the light source moves to the top side, hence top shadow is decreased by shadowDy while bottom shadow is increased by shadowDy. If shadowDy is negative, light source moves to the bottom side and top and bottom shadows are adjusted accordingly.


open fun getShadowTop(shadowSize: Float): Int

Return

Shadow applied to the top side of the element. Shadow offset equals to half of shadowSize.

Parameters

shadowSize