Share via


View.OnSizeChanged(Int32, Int32, Int32, Int32) Method

Definition

This is called during layout when the size of this view has changed.

[Android.Runtime.Register("onSizeChanged", "(IIII)V", "GetOnSizeChanged_IIIIHandler")]
protected virtual void OnSizeChanged (int w, int h, int oldw, int oldh);
[<Android.Runtime.Register("onSizeChanged", "(IIII)V", "GetOnSizeChanged_IIIIHandler")>]
abstract member OnSizeChanged : int * int * int * int -> unit
override this.OnSizeChanged : int * int * int * int -> unit

Parameters

w
Int32

Current width of this view.

h
Int32

Current height of this view.

oldw
Int32

Old width of this view.

oldh
Int32

Old height of this view.

Attributes

Remarks

This is called during layout when the size of this view has changed. If you were just added to the view hierarchy, you're called with the old values of 0.

Java documentation for android.view.View.onSizeChanged(int, int, int, int).

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