Condividi tramite


Drawable.SetHotspot(Single, Single) Method

Definition

Specifies the hotspot's location within the drawable.

[Android.Runtime.Register("setHotspot", "(FF)V", "GetSetHotspot_FFHandler")]
public virtual void SetHotspot (float x, float y);
[<Android.Runtime.Register("setHotspot", "(FF)V", "GetSetHotspot_FFHandler")>]
abstract member SetHotspot : single * single -> unit
override this.SetHotspot : single * single -> unit

Parameters

x
Single

The X coordinate of the center of the hotspot

y
Single

The Y coordinate of the center of the hotspot

Attributes

Remarks

Specifies the hotspot's location within the drawable.

Java documentation for android.graphics.drawable.Drawable.setHotspot(float, float).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to