MotionEvent.SetLocation(Single, Single) Method

Definition

Set this event's location.

[Android.Runtime.Register("setLocation", "(FF)V", "")]
public void SetLocation (float x, float y);
[<Android.Runtime.Register("setLocation", "(FF)V", "")>]
member this.SetLocation : single * single -> unit

Parameters

x
Single

New absolute X location.

y
Single

New absolute Y location.

Attributes

Remarks

Set this event's location. Applies #offsetLocation with a delta from the current location to the given new location.

Java documentation for android.view.MotionEvent.setLocation(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