Android Guides | Samples

Android.Widget.AbsoluteLayout.OnLayout Method

Called from layout when this view should assign a size and position to each of its children.

Syntax

[Android.Runtime.Register("onLayout", "(ZIIII)V", "GetOnLayout_ZIIIIHandler")]
protected override Void OnLayout (Boolean changed, Int32 l, Int32 t, Int32 r, Int32 b)

Parameters

changed
This is a new size or position for this view
l
Left position, relative to parent
t
Top position, relative to parent
r
Right position, relative to parent
b
Bottom position, relative to parent

Remarks

Called from layout when this view should assign a size and position to each of its children. Derived classes with children should override this method and call layout on each of their children.

[Android Documentation]

Requirements

Namespace: Android.Widget
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1