# WearableLinearLayoutManager.LayoutCallback

Artifact: [androidx.wear:wear](https://developer.android.com/jetpack/androidx/releases/wear) [View Source](https://cs.android.com/search?q=file:androidx/wear/widget/WearableLinearLayoutManager.java+class:androidx.wear.widget.WearableLinearLayoutManager.LayoutCallback) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear#1.1.0)

*** ** * ** ***


```
public abstract class WearableLinearLayoutManager.LayoutCallback
```

<br />

Known direct subclasses [CurvingLayoutCallback](https://developer.android.com/reference/androidx/wear/widget/CurvingLayoutCallback)

|---|---|
| `https://developer.android.com/reference/androidx/wear/widget/CurvingLayoutCallback` | An implementation of the `https://developer.android.com/reference/androidx/wear/widget/WearableLinearLayoutManager.LayoutCallback` aligning the children of the associated `https://developer.android.com/reference/androidx/wear/widget/WearableRecyclerView` along a pre-defined vertical curve. |

*** ** * ** ***

Callback for interacting with layout passes.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/wear/widget/WearableLinearLayoutManager.LayoutCallback#LayoutCallback()()` |

| ### Public methods |
|---|---|
| `abstract void` | `https://developer.android.com/reference/androidx/wear/widget/WearableLinearLayoutManager.LayoutCallback#onLayoutFinished(android.view.View,androidx.recyclerview.widget.RecyclerView)(https://developer.android.com/reference/android/view/View.html child, https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView parent)` Override this method to implement custom child layout behavior on scroll. |

## Public constructors

### LayoutCallback

Added in 1.1.0

```
public LayoutCallback()
```

## Public methods

### onLayoutFinished

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear#1.1.0)

```
public abstract void onLayoutFinished(View child, RecyclerView parent)
```

Override this method to implement custom child layout behavior on scroll. It is called at the end of each layout pass of the view (including scrolling) and enables you to modify any property of the child view. Examples include scaling the children based on their distance from the center of the parent, or changing the translation of the children to create an illusion of the path they are moving along.

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/view/View.html child` | the current child to be affected. |
| `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView parent` | the `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView` parent that this class is attached to. |