Skip to main content
You are viewing help content for a version that is no longer maintained/updated.

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.