DrawableButton


#1

I'm trying to use a DrawableButton for my interface. In doing that,  I need to set the images. Trouble is the function requieres drawables. In the documentation, it says about the constructor that :

The base class can't be instantiated directly.

How should I instantiate my Drawable?


#2

Drawable is a base class.  You want to use DrawableImage.

 


#3

Got it, thanks!


#4

You can also use the static methods Drawable::createFromImageFile, createFromImageData, etc