setHotspotBounds

open fun setHotspotBounds(@NonNull drawable: Drawable, left: Int, top: Int, right: Int, bottom: Int)(source)

Sets the bounds to which the hotspot is constrained, if they should be different from the drawable bounds.

Parameters

drawable

The Drawable against which to invoke the method.

left

position in pixels of the left bound

top

position in pixels of the top bound

right

position in pixels of the right bound

bottom

position in pixels of the bottom bound