viewMatchesDrawable

Compares a view's rendered output to a drawable.

Return

true if the view renders identically to the drawable

Parameters

view

the view to compare (must be laid out with nonzero dimensions)

drawable

the drawable to compare against

Throws

if the view has zero width or height