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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
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. |
---|