View.OnLayout(Boolean, Int32, Int32, Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called from layout when this view should assign a size and position to each of its children.
[Android.Runtime.Register("onLayout", "(ZIIII)V", "GetOnLayout_ZIIIIHandler")]
protected virtual void OnLayout (bool changed, int left, int top, int right, int bottom);
[<Android.Runtime.Register("onLayout", "(ZIIII)V", "GetOnLayout_ZIIIIHandler")>]
abstract member OnLayout : bool * int * int * int * int -> unit
override this.OnLayout : bool * int * int * int * int -> unit
Parameters
- changed
- Boolean
This is a new size or position for this view
- left
- Int32
Left position, relative to parent
- top
- Int32
Top position, relative to parent
- right
- Int32
Right position, relative to parent
- bottom
- Int32
Bottom position, relative to parent
- Attributes
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.
Java documentation for android.view.View.onLayout(boolean, 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.