이제 두 번째 Android 11 개발자 프리뷰를 사용할 수 있습니다. 테스트해 보고 의견을 공유하세요.

OnChildLaidOutListener

interface OnChildLaidOutListener
androidx.leanback.widget.OnChildLaidOutListener

Interface for receiving notification when a child of this ViewGroup has been laid out.

Summary

Public methods

abstract Unit
onChildLaidOut(parent: ViewGroup!, view: View!, position: Int, id: Long)

Callback method to be invoked when a child of this ViewGroup has been added to the view hierarchy and has been laid out.

Public methods

onChildLaidOut

abstract fun onChildLaidOut(
    parent: ViewGroup!,
    view: View!,
    position: Int,
    id: Long
): Unit

Callback method to be invoked when a child of this ViewGroup has been added to the view hierarchy and has been laid out.

Parameters
parent ViewGroup!: The ViewGroup where the layout happened.
view View!: The view within the ViewGroup that was laid out.
position Int: The position of the view in the adapter.
id Long: The id of the child.