RotateDrawable

Class of android.graphics.drawable · RotateDrawable.java · Android's reference

public class RotateDrawable extends DrawableWrapper

RotateDrawable ← DrawableWrapper ← Drawable

A drawable turned by its level, as Android's: from fromDegrees at level 0 to toDegrees at 10000, about its pivot (a fraction of the bounds by default, the middle).

Constructors

public RotateDrawable() source

Methods

public void inflate(android.content.res.Resources r, org.xmlpull.v1.XmlPullParser parser, android.util.AttributeSet attrs, android.content.res.Resources.Theme theme) throws org.xmlpull.v1.XmlPullParserException, java.io.IOException source
public void draw(Canvas canvas) source
protected boolean onLevelChange(int level) source
public void setFromDegrees(float fromDegrees) source
public float getFromDegrees() source
public void setToDegrees(float toDegrees) source
public float getToDegrees() source
public void setPivotX(float pivotX) source
public float getPivotX() source
public void setPivotY(float pivotY) source
public float getPivotY() source
public void setPivotXRelative(boolean relative) source
public boolean isPivotXRelative() source
public void setPivotYRelative(boolean relative) source
public boolean isPivotYRelative() source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.