java.lang.Object | |||
↳ | android.graphics.drawable.Drawable | ||
↳ | com.facebook.drawee.drawable.ForwardingDrawable | ||
↳ | com.facebook.drawee.drawable.AutoRotateDrawable |
Drawable that automatically rotates underlying drawable.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AutoRotateDrawable(Drawable drawable, int interval)
Creates a new AutoRotateDrawable with given underlying drawable, interval and a clockwise
rotation.
| |||||||||||
AutoRotateDrawable(Drawable drawable, int interval, boolean clockwise)
Creates a new AutoRotateDrawable with given underlying drawable and interval.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AutoRotateDrawable |
cloneDrawable()
Creates a copy of the drawable.
| ||||||||||
void | draw(Canvas canvas) | ||||||||||
void |
reset()
Resets to the initial state.
| ||||||||||
void | run() | ||||||||||
void |
setClockwise(boolean clockwise)
Define whether the rotation is clockwise or not.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Creates a new AutoRotateDrawable with given underlying drawable, interval and a clockwise rotation.
drawable | underlying drawable to apply the rotation to |
---|---|
interval | duration in milliseconds of one complete rotation |
Creates a new AutoRotateDrawable with given underlying drawable and interval.
drawable | underlying drawable to apply the rotation to |
---|---|
interval | duration in milliseconds of one complete rotation |
clockwise | defines whether the rotation is clockwise or not |
Creates a copy of the drawable.
Resets to the initial state.
Define whether the rotation is clockwise or not. By default is the rotation clockwise.