createWithResource

Create an Icon pointing to a drawable resource.

Parameters

context

The context for the application whose resources should be used to resolve the given resource ID.

resId

ID of the drawable resource

See also