# OnChildLaidOutListener

Artifact: [androidx.leanback:leanback-grid](https://developer.android.com/jetpack/androidx/releases/leanback) [View Source](https://cs.android.com/search?q=file:androidx/leanback/widget/OnChildLaidOutListener.java+class:androidx.leanback.widget.OnChildLaidOutListener) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.0.0)

*** ** * ** ***


```
public interface OnChildLaidOutListener
```

<br />

*** ** * ** ***

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

## Summary

| ### Public methods |
|---|---|
| `abstract void` | `https://developer.android.com/reference/androidx/leanback/widget/OnChildLaidOutListener#onChildLaidOut(android.view.ViewGroup,android.view.View,int,long)( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/view/ViewGroup.html parent, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/view/View.html 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 [1.0.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.0.0)

```
abstract void onChildLaidOut(
    @NonNull ViewGroup parent,
    @NonNull 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 |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/view/ViewGroup.html parent` | The ViewGroup where the layout happened. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/view/View.html view` | The view within the ViewGroup that was laid out. |
| `int position` | The position of the view in the adapter. |
| `long id` | The id of the child. |