Drawable Control Drawer
A ControlDrawer that draws an drawable resource.
Constructors
Link copied to clipboard
public DrawableControlDrawer DrawableControlDrawer(DrawableControlDrawer.DrawableProperties properties)
Properties
Functions
Link copied to clipboard
Check whether the dimensions of the drawable are similar, if not log an error message.
Link copied to clipboard
Link copied to clipboard
public final static DrawableControlDrawer fromDrawableRes(Context context, @DrawableRes() Integer id)
public final static DrawableControlDrawer fromDrawableRes(Context context, @DrawableRes() Integer id, Paint paint)
public final static DrawableControlDrawer fromDrawableRes(Context context, @DrawableRes() Integer id, Float scale)
public final static DrawableControlDrawer fromDrawableRes(Context context, @DrawableRes() Integer id, Float scale, Paint paint)
Instance a DrawableControlDrawer from context and a DrawableRes id.
Link copied to clipboard
Gets the rectangle that the drawable will be scaled/translated to fit into.
Link copied to clipboard
Gets the drawable resource.
Obtains a drawable from a context and a DrawableRes id.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Gets the current position where the control is located and that the drawer will take as center to draw the drawable.
Link copied to clipboard
Sets the drawable resource.