lightbulb_outline Please take our October 2018 developer survey. Start survey
added in version 1.0.0
belongs to Maven artifact androidx.leanback:leanback:1.0.0

OnChildLaidOutListener

public interface OnChildLaidOutListener

androidx.leanback.widget.OnChildLaidOutListener


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

Summary

Public methods

abstract void onChildLaidOut(ViewGroup parent, View view, int position, long id)

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

added in version 1.0.0
public abstract void onChildLaidOut (ViewGroup parent, 
                View view, 
                int position, 
                long id)

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.