private int calculateShadowWidth ( ) { float mShadowRadius = isShadowResponsiveEffectEnabled ( ) ? ( ( ShadowResponsiveDrawer ) shadowResponsiveDrawer ) . getMaxShadowRadius ( ) : getShadowRadius ( ) ; int shadowWidth = hasShadow ( ) ? ( int ) ( ( mShadowRadius + Math . abs ( getShadowXOffset ( ) ) ) * 2 ) : 0 ; LOGGER . trace ( "Calculated Action Button shadow width: {}" , shadowWidth ) ; return shadowWidth ; }
Calculates shadow width in actual pixels