java.lang.Object  
↳  DrawableWrapper  
↳  com.droidux.pack.layouts.drawable.ReflectionDrawable 
A Drawable that adds a reflection to another drawable.
Public Constructors  

Construct a reflection drawable with default settings.
 
Construct a reflection drawable.

Public Methods  

Clean up the internal cache.
 
Gets the gap/distance between the wrapped drawable to the "virtual" reflecting floor.
 
Gets the factor used to calculate the height of the reflection.
 
Gets the factor used to calculate the strength of the reflection.
 
Returns whether the reflection is drawn or not.
 
Sets the distance between the bottom of the wrapped drawable to a "virtual" reflecting floor.
 
Sets whether a reflection should be drawn.
 
Sets the factor to calculate the height of the reflection.
 
Sets the factor to calculate the strength of the reflection.

[Expand]
Inherited Methods  

From class
java.lang.Object
 
From interface
android.graphics.drawable.Drawable.Callback

Construct a reflection drawable with default settings.
wrapped  Drawable to add a reflection to. 

Construct a reflection drawable.
wrapped  Drawable to add a reflection to. 

reflected  Whether the reflection should be added by default. 
heightFactor  The factor to calculate the height of the reflection. Must be between 01. 
strength  The strength of the reflection. This value determine the opacity of the reflection. Must be between 01. 
floorGap  The distance between the bottom of the wrapped drawable to a "virtual" reflecting floor.

Gets the gap/distance between the wrapped drawable to the "virtual" reflecting floor.
Gets the factor used to calculate the height of the reflection.
Gets the factor used to calculate the strength of the reflection.
Returns whether the reflection is drawn or not.
true
if the reflection is drawn, false
otherwise.
Sets the distance between the bottom of the wrapped drawable to a "virtual" reflecting floor.
floorGap  The gap to the "virtual" floor. 

Sets whether a reflection should be drawn.
reflected  If true , a reflection will be drawn.


Sets the factor to calculate the height of the reflection. Must be between 01.
factor  The height factor. 

Sets the factor to calculate the strength of the reflection. This value will determine the opacity of the reflection. Must be between 01.
strength  The reflection strength. 
