java.lang.Object | |||
↳ | android.graphics.drawable.Drawable | ||
↳ | com.facebook.drawee.drawable.ForwardingDrawable | ||
↳ | com.facebook.drawee.drawable.OrientedDrawable |
Drawable that automatically rotates the underlying drawable with a pivot in the center of the drawable bounds based on a rotation angle.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.facebook.drawee.drawable.ForwardingDrawable
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
OrientedDrawable(Drawable drawable, int rotationAngle)
Creates a new OrientedDrawable.
| |||||||||||
OrientedDrawable(Drawable drawable, int rotationAngle, int exifOrientation)
Creates a new OrientedDrawable.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void | draw(Canvas canvas) | ||||||||||
int | getIntrinsicHeight() | ||||||||||
int | getIntrinsicWidth() | ||||||||||
void |
getTransform(Matrix transform)
Called when the drawable needs to get all matrices applied to it.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void | onBoundsChange(Rect bounds) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.facebook.drawee.drawable.ForwardingDrawable
| |||||||||||
From class
android.graphics.drawable.Drawable
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
android.graphics.drawable.Drawable.Callback
| |||||||||||
From interface
com.facebook.drawee.drawable.DrawableParent
| |||||||||||
From interface
com.facebook.drawee.drawable.TransformAwareDrawable
| |||||||||||
From interface
com.facebook.drawee.drawable.TransformCallback
|
Creates a new OrientedDrawable.
rotationAngle | multiples of 90 or -1 if the angle is unknown |
---|
Creates a new OrientedDrawable.
rotationAngle | multiples of 90. Invalid value is clamped to a closest multiple of 90. |
---|---|
exifOrientation | EXIF values (1-8), or 0 if unknown. Invalid value is replaced with 0. |
Called when the drawable needs to get all matrices applied to it.
transform | Matrix that is applied to the drawable by the parent drawables. |
---|