Megosztás a következőn keresztül:


ViewGroup.GetChildDrawingOrder Method

Definition

Overloads

GetChildDrawingOrder(Int32)

Converts drawing order position to container position.

GetChildDrawingOrder(Int32, Int32)

Converts drawing order position to container position.

GetChildDrawingOrder(Int32)

Converts drawing order position to container position.

[Android.Runtime.Register("getChildDrawingOrder", "(I)I", "", ApiSince=29)]
public int GetChildDrawingOrder (int drawingPosition);
[<Android.Runtime.Register("getChildDrawingOrder", "(I)I", "", ApiSince=29)>]
member this.GetChildDrawingOrder : int -> int

Parameters

drawingPosition
Int32

the drawing order position.

Returns

the container position of a child for this drawing order position.

Attributes

Remarks

Converts drawing order position to container position.

Children are not necessarily drawn in the order in which they appear in the container. ViewGroups can enable a custom ordering via #setChildrenDrawingOrderEnabled(boolean). This method returns the container position of a child that appears in the given position in the current drawing order.

Java documentation for android.view.ViewGroup.getChildDrawingOrder(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

GetChildDrawingOrder(Int32, Int32)

Converts drawing order position to container position.

[Android.Runtime.Register("getChildDrawingOrder", "(II)I", "GetGetChildDrawingOrder_IIHandler")]
protected virtual int GetChildDrawingOrder (int childCount, int drawingPosition);
[<Android.Runtime.Register("getChildDrawingOrder", "(II)I", "GetGetChildDrawingOrder_IIHandler")>]
abstract member GetChildDrawingOrder : int * int -> int
override this.GetChildDrawingOrder : int * int -> int

Parameters

childCount
Int32
drawingPosition
Int32

the drawing order position.

Returns

the container position of a child for this drawing order position.

Attributes

Remarks

Converts drawing order position to container position. Override this if you want to change the drawing order of children. By default, it returns drawingPosition.

NOTE: In order for this method to be called, you must enable child ordering first by calling #setChildrenDrawingOrderEnabled(boolean).

Java documentation for android.view.ViewGroup.getChildDrawingOrder(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.

See also

Applies to