Skip to main content

Drawable Interface

The interface an object that can be drawn should implement.

Declaration

public interface Drawable

Methods

onDraw(Canvas) Method

Called when something should be drawn.

Declaration

public void onDraw(Canvas canvas)

Parameters

Name Type Description
canvas Canvas

The object specifying what is drawn.