fromDrawableRes

public final static DrawableControlDrawer fromDrawableRes(Context context, @DrawableRes() Integer id, Float scale, Paint paint)

Instance a DrawableControlDrawer from context and a DrawableRes id.

Parameters

context

The current activity or view context.

id

The drawable resource id.

scale

The scale ratio to scale the drawable. Must be a value greater than zero.

paint

Throws

If doesn't exist a drawable for the given id or the scale is not positive.


public final static DrawableControlDrawer fromDrawableRes(Context context, @DrawableRes() Integer id, Float scale)

Instance a DrawableControlDrawer from context and a DrawableRes id.

Parameters

context

The current activity or view context.

id

The drawable resource id.

scale

The scale ratio to scale the drawable. Must be a value greater than zero.

Throws

If doesn't exist a drawable for the given id or the scale is not positive.


public final static DrawableControlDrawer fromDrawableRes(Context context, @DrawableRes() Integer id, Paint paint)

Instance a DrawableControlDrawer from context and a DrawableRes id.

Parameters

context

The current activity or view context.

id

The drawable resource id.

paint

Throws

If doesn't exist a drawable for the given id.


public final static DrawableControlDrawer fromDrawableRes(Context context, @DrawableRes() Integer id)

Instance a DrawableControlDrawer from context and a DrawableRes id.

Parameters

context

The current activity or view context.

id

The drawable resource id.

Throws

if doesn't exist a drawable for the given id.