# WearableLinearLayoutManager.LayoutCallback

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  
belongs to Maven artifact com.android.support:wear:28.0.0-alpha1  
Summary:[Ctors](https://developer.android.com/reference/android/support/wear/widget/WearableLinearLayoutManager.LayoutCallback#pubctors)\|[Methods](https://developer.android.com/reference/android/support/wear/widget/WearableLinearLayoutManager.LayoutCallback#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/support/wear/widget/WearableLinearLayoutManager.LayoutCallback#inhmethods)\|[\[Expand All\]](https://developer.android.com/reference/android/support/wear/widget/WearableLinearLayoutManager.LayoutCallback#)  

# WearableLinearLayoutManager.LayoutCallback

| This package is part of the Android[support library](https://developer.android.com/topic/libraries/support-library)which is no longer maintained. The support library has been superseded by[AndroidX](https://developer.android.com/jetpack/androidx)which is part of[Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider[migrating](https://developer.android.com/jetpack/androidx/migrate)existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library[class mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).

`
public
static

abstract
class
WearableLinearLayoutManager.LayoutCallback
`  
`

extends Object


``


`

|---|------------------------------------------------------------------------|
| java.lang.Object                                                          ||
| ↳ | android.support.wear.widget.WearableLinearLayoutManager.LayoutCallback |

|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/wear/widget/WearableLinearLayoutManager.LayoutCallback#)Known Direct Subclasses [CurvingLayoutCallback](https://developer.android.com/reference/android/support/wear/widget/CurvingLayoutCallback) |--------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [CurvingLayoutCallback](https://developer.android.com/reference/android/support/wear/widget/CurvingLayoutCallback) | An implementation of the[WearableLinearLayoutManager.LayoutCallback](https://developer.android.com/reference/android/support/wear/widget/WearableLinearLayoutManager.LayoutCallback)aligning the children of the associated[WearableRecyclerView](https://developer.android.com/reference/android/support/wear/widget/WearableRecyclerView)along a pre-defined vertical curve. | |

<br />

*** ** * ** ***

Callback for interacting with layout passes.

## Summary

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

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

| ### Inherited methods |
|-----------------------|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/wear/widget/WearableLinearLayoutManager.LayoutCallback#)From class` java.lang.Object ` |-------------------|-------------------------------| | ` Object`         | ` clone() `                   | | ` boolean`        | ` equals(Object arg0) `       | | ` void`           | ` finalize() `                | | ` final Class<?>` | ` getClass() `                | | ` int`            | ` hashCode() `                | | ` final void`     | ` notify() `                  | | ` final void`     | ` notifyAll() `               | | ` String`         | ` toString() `                | | ` final void`     | ` wait(long arg0, int arg1) ` | | ` final void`     | ` wait(long arg0) `           | | ` final void`     | ` wait() `                    | ||

## Public constructors

### WearableLinearLayoutManager.LayoutCallback

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
WearableLinearLayoutManager.LayoutCallback ()
```

<br />

<br />

## Public methods

### onLayoutFinished

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
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.

<br />

|                                                                                Parameters                                                                                ||
|----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `child`  | `View`: the current child to be affected. <br />                                                                                                               |
| `parent` | `RecyclerView`: the[RecyclerView](https://developer.android.com/reference/android/support/v7/widget/RecyclerView)parent that this class is attached to. <br /> |

-

  ## Interfaces

  - [CircularProgressLayout.OnTimerFinishedListener](https://developer.android.com/reference/android/support/wear/widget/CircularProgressLayout.OnTimerFinishedListener)
-

  ## Classes

  - [BoxInsetLayout](https://developer.android.com/reference/android/support/wear/widget/BoxInsetLayout)
  - [BoxInsetLayout.LayoutParams](https://developer.android.com/reference/android/support/wear/widget/BoxInsetLayout.LayoutParams)
  - [CircularProgressLayout](https://developer.android.com/reference/android/support/wear/widget/CircularProgressLayout)
  - [CurvingLayoutCallback](https://developer.android.com/reference/android/support/wear/widget/CurvingLayoutCallback)
  - [RoundedDrawable](https://developer.android.com/reference/android/support/wear/widget/RoundedDrawable)
  - [SwipeDismissFrameLayout](https://developer.android.com/reference/android/support/wear/widget/SwipeDismissFrameLayout)
  - [SwipeDismissFrameLayout.Callback](https://developer.android.com/reference/android/support/wear/widget/SwipeDismissFrameLayout.Callback)
  - [WearableLinearLayoutManager](https://developer.android.com/reference/android/support/wear/widget/WearableLinearLayoutManager)
  - [WearableLinearLayoutManager.LayoutCallback](https://developer.android.com/reference/android/support/wear/widget/WearableLinearLayoutManager.LayoutCallback)
  - [WearableRecyclerView](https://developer.android.com/reference/android/support/wear/widget/WearableRecyclerView)