# OrientationHelper

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  
belongs to Maven artifact com.android.support:recyclerview-v7:28.0.0-alpha1  
Summary:[Constants](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper#constants)\|[Fields](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper#lfields)\|[Methods](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper#inhmethods)\|[\[Expand All\]](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper#)  

# OrientationHelper

| 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


abstract
class
OrientationHelper
`  
`

extends Object


``


`

|---|---------------------------------------------|
| java.lang.Object                               ||
| ↳ | android.support.v7.widget.OrientationHelper |

<br />

*** ** * ** ***

Helper class for LayoutManagers to abstract measurements depending on the View's orientation.

It is developed to easily support vertical and horizontal orientations in a LayoutManager but can also be used to abstract calls around view bounds and child measurements with margins and decorations.  
**See also:**

- [createHorizontalHelper(RecyclerView.LayoutManager)](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper#createHorizontalHelper(android.support.v7.widget.RecyclerView.LayoutManager))
- [createVerticalHelper(RecyclerView.LayoutManager)](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper#createVerticalHelper(android.support.v7.widget.RecyclerView.LayoutManager))

## Summary

|                                                       ### Constants                                                        ||
|-------|---------------------------------------------------------------------------------------------------------------------|
| `int` | [HORIZONTAL](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper#HORIZONTAL) <br /> |
| `int` | [VERTICAL](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper#VERTICAL) <br />     |

|                                                                                                                                 ### Fields                                                                                                                                 ||
|-----------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------|
| ` protected final `[RecyclerView.LayoutManager](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.LayoutManager) | [mLayoutManager](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper#mLayoutManager) <br /> |

|                                                                                                                                                                                                                                                                              ### Public methods                                                                                                                                                                                                                                                                               ||
|-------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` static `[OrientationHelper](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper)            | ` `[createHorizontalHelper](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper#createHorizontalHelper(android.support.v7.widget.RecyclerView.LayoutManager))`(`[RecyclerView.LayoutManager](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.LayoutManager)` layoutManager) ` Creates a horizontal OrientationHelper for the given LayoutManager.                               |
| ` static `[OrientationHelper](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper)            | ` `[createOrientationHelper](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper#createOrientationHelper(android.support.v7.widget.RecyclerView.LayoutManager, int))`(`[RecyclerView.LayoutManager](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.LayoutManager)` layoutManager, int orientation) ` Creates an OrientationHelper for the given LayoutManager and orientation. |
| ` static `[OrientationHelper](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper)            | ` `[createVerticalHelper](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper#createVerticalHelper(android.support.v7.widget.RecyclerView.LayoutManager))`(`[RecyclerView.LayoutManager](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.LayoutManager)` layoutManager) ` Creates a vertical OrientationHelper for the given LayoutManager.                                     |
| ` abstract int`                                                                                                               | ` `[getDecoratedEnd](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper#getDecoratedEnd(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` Returns the end of the view including its decoration and margin.                                                                                                                                                |
| ` abstract int`                                                                                                               | ` `[getDecoratedMeasurement](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper#getDecoratedMeasurement(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` Returns the space occupied by this View in the current orientation including decorations and margins.                                                                                           |
| ` abstract int`                                                                                                               | ` `[getDecoratedMeasurementInOther](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper#getDecoratedMeasurementInOther(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` Returns the space occupied by this View in the perpendicular orientation including decorations and margins.                                                                       |
| ` abstract int`                                                                                                               | ` `[getDecoratedStart](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper#getDecoratedStart(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` Returns the start of the view including its decoration and margin.                                                                                                                                          |
| ` abstract int`                                                                                                               | ` `[getEnd](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper#getEnd())`() ` Returns the end position of the layout without taking padding into account.                                                                                                                                                                                                                                                     |
| ` abstract int`                                                                                                               | ` `[getEndAfterPadding](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper#getEndAfterPadding())`() ` Returns the end position of the layout after the end padding is removed.                                                                                                                                                                                                                                |
| ` abstract int`                                                                                                               | ` `[getEndPadding](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper#getEndPadding())`() ` Returns the padding at the end of the layout.                                                                                                                                                                                                                                                                     |
| ` `[RecyclerView.LayoutManager](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.LayoutManager) | ` `[getLayoutManager](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper#getLayoutManager())`() ` Returns the[LayoutManager](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.LayoutManager)that is associated with this OrientationHelper.                                                                                                                                     |
| ` abstract int`                                                                                                               | ` `[getMode](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper#getMode())`() ` Returns the MeasureSpec mode for the current orientation from the LayoutManager.                                                                                                                                                                                                                                              |
| ` abstract int`                                                                                                               | ` `[getModeInOther](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper#getModeInOther())`() ` Returns the MeasureSpec mode for the perpendicular orientation from the LayoutManager.                                                                                                                                                                                                                          |
| ` abstract int`                                                                                                               | ` `[getStartAfterPadding](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper#getStartAfterPadding())`() ` Returns the start position of the layout after the start padding is added.                                                                                                                                                                                                                          |
| ` abstract int`                                                                                                               | ` `[getTotalSpace](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper#getTotalSpace())`() ` Returns the total space to layout.                                                                                                                                                                                                                                                                                |
| ` int`                                                                                                                        | ` `[getTotalSpaceChange](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper#getTotalSpaceChange())`() ` Returns the layout space change between the previous layout pass and current layout pass.                                                                                                                                                                                                             |
| ` abstract int`                                                                                                               | ` `[getTransformedEndWithDecoration](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper#getTransformedEndWithDecoration(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` Returns the end of the View after its matrix transformations are applied to its layout position.                                                                                |
| ` abstract int`                                                                                                               | ` `[getTransformedStartWithDecoration](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper#getTransformedStartWithDecoration(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` Returns the start of the View after its matrix transformations are applied to its layout position.                                                                          |
| ` abstract void`                                                                                                              | ` `[offsetChild](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper#offsetChild(android.view.View, int))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, int offset) ` Offsets the child in this orientation.                                                                                                                                                                 |
| ` abstract void`                                                                                                              | ` `[offsetChildren](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper#offsetChildren(int))`(int amount) ` Offsets all children's positions by the given amount.                                                                                                                                                                                                                                              |
| ` void`                                                                                                                       | ` `[onLayoutComplete](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper#onLayoutComplete())`() ` Call this method after onLayout method is complete if state is NOT pre-layout.                                                                                                                                                                                                                              |

| ### Inherited methods |
|-----------------------|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper#)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() `                    | ||

## Constants

### HORIZONTAL

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

```
int HORIZONTAL
```

<br />

<br />

Constant Value: 0 (0x00000000)  

### VERTICAL

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

```
int VERTICAL
```

<br />

<br />

Constant Value: 1 (0x00000001)

## Fields

### mLayoutManager

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

```
RecyclerView.LayoutManager mLayoutManager
```

<br />

<br />

## Public methods

### createHorizontalHelper

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

```
OrientationHelper createHorizontalHelper (RecyclerView.LayoutManager layoutManager)
```

Creates a horizontal OrientationHelper for the given LayoutManager.

<br />

|                                      Parameters                                       ||
|-----------------|----------------------------------------------------------------------|
| `layoutManager` | `RecyclerView.LayoutManager`: The LayoutManager to attach to. <br /> |

|                                                                 Returns                                                                  ||
|----------------------------------------------------------------------------------------------------------|--------------------------------|
| [OrientationHelper](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper) | A new OrientationHelper <br /> |

### createOrientationHelper

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

```
OrientationHelper createOrientationHelper (RecyclerView.LayoutManager layoutManager, 
                int orientation)
```

Creates an OrientationHelper for the given LayoutManager and orientation.

<br />

|                                                                                                                                     Parameters                                                                                                                                      ||
|-----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `layoutManager` | `RecyclerView.LayoutManager`: LayoutManager to attach to <br />                                                                                                                                                                                                    |
| `orientation`   | `int`: Desired orientation. Should be[HORIZONTAL](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper#HORIZONTAL)or[VERTICAL](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper#VERTICAL) <br /> |

|                                                                 Returns                                                                  ||
|----------------------------------------------------------------------------------------------------------|--------------------------------|
| [OrientationHelper](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper) | A new OrientationHelper <br /> |

### createVerticalHelper

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

```
OrientationHelper createVerticalHelper (RecyclerView.LayoutManager layoutManager)
```

Creates a vertical OrientationHelper for the given LayoutManager.

<br />

|                                      Parameters                                       ||
|-----------------|----------------------------------------------------------------------|
| `layoutManager` | `RecyclerView.LayoutManager`: The LayoutManager to attach to. <br /> |

|                                                                 Returns                                                                  ||
|----------------------------------------------------------------------------------------------------------|--------------------------------|
| [OrientationHelper](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper) | A new OrientationHelper <br /> |

### getDecoratedEnd

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

```
int getDecoratedEnd (View view)
```

Returns the end of the view including its decoration and margin.

For example, for the horizontal helper, if a View's right is at pixel 200, has 2px right decoration and 3px right margin, returned value will be 205.

<br />

|                    Parameters                    ||
|--------|------------------------------------------|
| `view` | `View`: The view element to check <br /> |

|                   Returns                   ||
|-------|--------------------------------------|
| `int` | The last pixel of the element <br /> |

**See also:**

- [getDecoratedStart(android.view.View)](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper#getDecoratedStart(android.view.View))  

### getDecoratedMeasurement

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

```
int getDecoratedMeasurement (View view)
```

Returns the space occupied by this View in the current orientation including decorations and margins.

<br />

|                    Parameters                    ||
|--------|------------------------------------------|
| `view` | `View`: The view element to check <br /> |

|                     Returns                     ||
|-------|------------------------------------------|
| `int` | Total space occupied by this view <br /> |

**See also:**

- [getDecoratedMeasurementInOther(View)](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper#getDecoratedMeasurementInOther(android.view.View))  

### getDecoratedMeasurementInOther

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

```
int getDecoratedMeasurementInOther (View view)
```

Returns the space occupied by this View in the perpendicular orientation including decorations and margins.

<br />

|                    Parameters                    ||
|--------|------------------------------------------|
| `view` | `View`: The view element to check <br /> |

|                                             Returns                                             ||
|-------|------------------------------------------------------------------------------------------|
| `int` | Total space occupied by this view in the perpendicular orientation to current one <br /> |

**See also:**

- [getDecoratedMeasurement(View)](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper#getDecoratedMeasurement(android.view.View))  

### getDecoratedStart

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

```
int getDecoratedStart (View view)
```

Returns the start of the view including its decoration and margin.

For example, for the horizontal helper, if a View's left is at pixel 20, has 2px left decoration and 3px left margin, returned value will be 15px.

<br />

|                    Parameters                    ||
|--------|------------------------------------------|
| `view` | `View`: The view element to check <br /> |

|                   Returns                    ||
|-------|---------------------------------------|
| `int` | The first pixel of the element <br /> |

**See also:**

- [getDecoratedEnd(android.view.View)](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper#getDecoratedEnd(android.view.View))  

### getEnd

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

```
int getEnd ()
```

Returns the end position of the layout without taking padding into account.

<br />

|                                   Returns                                   ||
|-------|----------------------------------------------------------------------|
| `int` | The end boundary for this layout without considering padding. <br /> |

### getEndAfterPadding

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

```
int getEndAfterPadding ()
```

Returns the end position of the layout after the end padding is removed.

<br />

|                     Returns                     ||
|-------|------------------------------------------|
| `int` | The end boundary for this layout. <br /> |

### getEndPadding

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

```
int getEndPadding ()
```

Returns the padding at the end of the layout. For horizontal helper, this is the right padding and for vertical helper, this is the bottom padding. This method does not check whether the layout is RTL or not.

<br />

|                       Returns                       ||
|-------|----------------------------------------------|
| `int` | The padding at the end of the layout. <br /> |

### getLayoutManager

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

```
RecyclerView.LayoutManager getLayoutManager ()
```

Returns the[LayoutManager](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.LayoutManager)that is associated with this OrientationHelper.

<br />

|                                                              Returns                                                               ||
|----------------------------------------------------------------------------------------------------------------------------|--------|
| [RecyclerView.LayoutManager](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.LayoutManager) | <br /> |

### getMode

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

```
int getMode ()
```

Returns the MeasureSpec mode for the current orientation from the LayoutManager.

<br />

|                   Returns                    ||
|-------|---------------------------------------|
| `int` | The current measure spec mode. <br /> |

**See also:**

- [View.MeasureSpec](https://developer.android.com/https://developer.android.com/reference/android/view/View.MeasureSpec)
- [getWidthMode()](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.LayoutManager#getWidthMode())
- [getHeightMode()](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.LayoutManager#getHeightMode())  

### getModeInOther

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

```
int getModeInOther ()
```

Returns the MeasureSpec mode for the perpendicular orientation from the LayoutManager.

<br />

|                   Returns                    ||
|-------|---------------------------------------|
| `int` | The current measure spec mode. <br /> |

**See also:**

- [View.MeasureSpec](https://developer.android.com/https://developer.android.com/reference/android/view/View.MeasureSpec)
- [getWidthMode()](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.LayoutManager#getWidthMode())
- [getHeightMode()](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.LayoutManager#getHeightMode())  

### getStartAfterPadding

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

```
int getStartAfterPadding ()
```

Returns the start position of the layout after the start padding is added.

<br />

|                     Returns                     ||
|-------|------------------------------------------|
| `int` | The very first pixel we can draw. <br /> |

### getTotalSpace

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

```
int getTotalSpace ()
```

Returns the total space to layout. This number is the difference between[getEndAfterPadding()](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper#getEndAfterPadding())and[getStartAfterPadding()](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper#getStartAfterPadding()).

<br />

|                   Returns                    ||
|-------|---------------------------------------|
| `int` | Total space to layout children <br /> |

### getTotalSpaceChange

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

```
int getTotalSpaceChange ()
```

Returns the layout space change between the previous layout pass and current layout pass.

Make sure you call[onLayoutComplete()](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper#onLayoutComplete())at the end of your LayoutManager's[onLayoutChildren(RecyclerView.Recycler, RecyclerView.State)](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.LayoutManager#onLayoutChildren(android.support.v7.widget.RecyclerView.Recycler, android.support.v7.widget.RecyclerView.State))method.

<br />

|                                             Returns                                             ||
|-------|------------------------------------------------------------------------------------------|
| `int` | The difference between the current total space and previous layout's total space. <br /> |

**See also:**

- [onLayoutComplete()](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper#onLayoutComplete())  

### getTransformedEndWithDecoration

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

```
int getTransformedEndWithDecoration (View view)
```

Returns the end of the View after its matrix transformations are applied to its layout position.

This method is useful when trying to detect the visible edge of a View.

It includes the decorations but does not include the margins.

<br />

|                               Parameters                               ||
|--------|----------------------------------------------------------------|
| `view` | `View`: The view whose transformed end will be returned <br /> |

|                                                    Returns                                                    ||
|-------|--------------------------------------------------------------------------------------------------------|
| `int` | The end of the View after its decor insets and transformation matrix is applied to its position <br /> |

**See also:**

- [getTransformedBoundingBox(View, boolean, Rect)](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.LayoutManager#getTransformedBoundingBox(android.view.View, boolean, android.graphics.Rect))  

### getTransformedStartWithDecoration

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

```
int getTransformedStartWithDecoration (View view)
```

Returns the start of the View after its matrix transformations are applied to its layout position.

This method is useful when trying to detect the visible edge of a View.

It includes the decorations but does not include the margins.

<br />

|                                Parameters                                ||
|--------|------------------------------------------------------------------|
| `view` | `View`: The view whose transformed start will be returned <br /> |

|                                                     Returns                                                     ||
|-------|----------------------------------------------------------------------------------------------------------|
| `int` | The start of the View after its decor insets and transformation matrix is applied to its position <br /> |

**See also:**

- [getTransformedBoundingBox(View, boolean, Rect)](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.LayoutManager#getTransformedBoundingBox(android.view.View, boolean, android.graphics.Rect))  

### offsetChild

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

```
void offsetChild (View view, 
                int offset)
```

Offsets the child in this orientation.

<br />

|               Parameters                ||
|----------|-------------------------------|
| `view`   | `View`: View to offset <br /> |
| `offset` | `int`: offset amount <br />   |

### offsetChildren

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

```
void offsetChildren (int amount)
```

Offsets all children's positions by the given amount.

<br />

|                               Parameters                               ||
|----------|--------------------------------------------------------------|
| `amount` | `int`: Value to add to each child's layout parameters <br /> |

### onLayoutComplete

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

```
void onLayoutComplete ()
```

Call this method after onLayout method is complete if state is NOT pre-layout. This method records information like layout bounds that might be useful in the next layout calculations.

<br />

-

  ## Annotations

  - [RecyclerView.EdgeEffectFactory.EdgeDirection](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.EdgeEffectFactory.EdgeDirection)
  - [RecyclerView.ItemAnimator.AdapterChanges](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ItemAnimator.AdapterChanges)
-

  ## Interfaces

  - [ActionMenuView.OnMenuItemClickListener](https://developer.android.com/reference/android/support/v7/widget/ActionMenuView.OnMenuItemClickListener)
  - [PopupMenu.OnDismissListener](https://developer.android.com/reference/android/support/v7/widget/PopupMenu.OnDismissListener)
  - [PopupMenu.OnMenuItemClickListener](https://developer.android.com/reference/android/support/v7/widget/PopupMenu.OnMenuItemClickListener)
  - [RecyclerView.ChildDrawingOrderCallback](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ChildDrawingOrderCallback)
  - [RecyclerView.ItemAnimator.ItemAnimatorFinishedListener](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ItemAnimator.ItemAnimatorFinishedListener)
  - [RecyclerView.LayoutManager.LayoutPrefetchRegistry](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.LayoutManager.LayoutPrefetchRegistry)
  - [RecyclerView.OnChildAttachStateChangeListener](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.OnChildAttachStateChangeListener)
  - [RecyclerView.OnItemTouchListener](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.OnItemTouchListener)
  - [RecyclerView.RecyclerListener](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.RecyclerListener)
  - [RecyclerView.SmoothScroller.ScrollVectorProvider](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.SmoothScroller.ScrollVectorProvider)
  - [SearchView.OnCloseListener](https://developer.android.com/reference/android/support/v7/widget/SearchView.OnCloseListener)
  - [SearchView.OnQueryTextListener](https://developer.android.com/reference/android/support/v7/widget/SearchView.OnQueryTextListener)
  - [SearchView.OnSuggestionListener](https://developer.android.com/reference/android/support/v7/widget/SearchView.OnSuggestionListener)
  - [ShareActionProvider.OnShareTargetSelectedListener](https://developer.android.com/reference/android/support/v7/widget/ShareActionProvider.OnShareTargetSelectedListener)
  - [ThemedSpinnerAdapter](https://developer.android.com/reference/android/support/v7/widget/ThemedSpinnerAdapter)
  - [Toolbar.OnMenuItemClickListener](https://developer.android.com/reference/android/support/v7/widget/Toolbar.OnMenuItemClickListener)
-

  ## Classes

  - [ActionMenuView](https://developer.android.com/reference/android/support/v7/widget/ActionMenuView)
  - [ActionMenuView.LayoutParams](https://developer.android.com/reference/android/support/v7/widget/ActionMenuView.LayoutParams)
  - [AppCompatAutoCompleteTextView](https://developer.android.com/reference/android/support/v7/widget/AppCompatAutoCompleteTextView)
  - [AppCompatButton](https://developer.android.com/reference/android/support/v7/widget/AppCompatButton)
  - [AppCompatCheckBox](https://developer.android.com/reference/android/support/v7/widget/AppCompatCheckBox)
  - [AppCompatCheckedTextView](https://developer.android.com/reference/android/support/v7/widget/AppCompatCheckedTextView)
  - [AppCompatEditText](https://developer.android.com/reference/android/support/v7/widget/AppCompatEditText)
  - [AppCompatImageButton](https://developer.android.com/reference/android/support/v7/widget/AppCompatImageButton)
  - [AppCompatImageView](https://developer.android.com/reference/android/support/v7/widget/AppCompatImageView)
  - [AppCompatMultiAutoCompleteTextView](https://developer.android.com/reference/android/support/v7/widget/AppCompatMultiAutoCompleteTextView)
  - [AppCompatRadioButton](https://developer.android.com/reference/android/support/v7/widget/AppCompatRadioButton)
  - [AppCompatRatingBar](https://developer.android.com/reference/android/support/v7/widget/AppCompatRatingBar)
  - [AppCompatSeekBar](https://developer.android.com/reference/android/support/v7/widget/AppCompatSeekBar)
  - [AppCompatSpinner](https://developer.android.com/reference/android/support/v7/widget/AppCompatSpinner)
  - [AppCompatTextView](https://developer.android.com/reference/android/support/v7/widget/AppCompatTextView)
  - [CardView](https://developer.android.com/reference/android/support/v7/widget/CardView)
  - [DefaultItemAnimator](https://developer.android.com/reference/android/support/v7/widget/DefaultItemAnimator)
  - [DividerItemDecoration](https://developer.android.com/reference/android/support/v7/widget/DividerItemDecoration)
  - [GridLayout](https://developer.android.com/reference/android/support/v7/widget/GridLayout)
  - [GridLayout.Alignment](https://developer.android.com/reference/android/support/v7/widget/GridLayout.Alignment)
  - [GridLayout.LayoutParams](https://developer.android.com/reference/android/support/v7/widget/GridLayout.LayoutParams)
  - [GridLayout.Spec](https://developer.android.com/reference/android/support/v7/widget/GridLayout.Spec)
  - [GridLayoutManager](https://developer.android.com/reference/android/support/v7/widget/GridLayoutManager)
  - [GridLayoutManager.DefaultSpanSizeLookup](https://developer.android.com/reference/android/support/v7/widget/GridLayoutManager.DefaultSpanSizeLookup)
  - [GridLayoutManager.LayoutParams](https://developer.android.com/reference/android/support/v7/widget/GridLayoutManager.LayoutParams)
  - [GridLayoutManager.SpanSizeLookup](https://developer.android.com/reference/android/support/v7/widget/GridLayoutManager.SpanSizeLookup)
  - [LinearLayoutCompat](https://developer.android.com/reference/android/support/v7/widget/LinearLayoutCompat)
  - [LinearLayoutCompat.LayoutParams](https://developer.android.com/reference/android/support/v7/widget/LinearLayoutCompat.LayoutParams)
  - [LinearLayoutManager](https://developer.android.com/reference/android/support/v7/widget/LinearLayoutManager)
  - [LinearLayoutManager.LayoutChunkResult](https://developer.android.com/reference/android/support/v7/widget/LinearLayoutManager.LayoutChunkResult)
  - [LinearSmoothScroller](https://developer.android.com/reference/android/support/v7/widget/LinearSmoothScroller)
  - [LinearSnapHelper](https://developer.android.com/reference/android/support/v7/widget/LinearSnapHelper)
  - [ListPopupWindow](https://developer.android.com/reference/android/support/v7/widget/ListPopupWindow)
  - [OrientationHelper](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper)
  - [PagerSnapHelper](https://developer.android.com/reference/android/support/v7/widget/PagerSnapHelper)
  - [PopupMenu](https://developer.android.com/reference/android/support/v7/widget/PopupMenu)
  - [RecyclerView](https://developer.android.com/reference/android/support/v7/widget/RecyclerView)
  - [RecyclerView.Adapter](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter)
  - [RecyclerView.AdapterDataObserver](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.AdapterDataObserver)
  - [RecyclerView.EdgeEffectFactory](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.EdgeEffectFactory)
  - [RecyclerView.ItemAnimator](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ItemAnimator)
  - [RecyclerView.ItemAnimator.ItemHolderInfo](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ItemAnimator.ItemHolderInfo)
  - [RecyclerView.ItemDecoration](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ItemDecoration)
  - [RecyclerView.LayoutManager](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.LayoutManager)
  - [RecyclerView.LayoutManager.Properties](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.LayoutManager.Properties)
  - [RecyclerView.LayoutParams](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.LayoutParams)
  - [RecyclerView.OnFlingListener](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.OnFlingListener)
  - [RecyclerView.OnScrollListener](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.OnScrollListener)
  - [RecyclerView.RecycledViewPool](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.RecycledViewPool)
  - [RecyclerView.Recycler](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Recycler)
  - [RecyclerView.SimpleOnItemTouchListener](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.SimpleOnItemTouchListener)
  - [RecyclerView.SmoothScroller](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.SmoothScroller)
  - [RecyclerView.SmoothScroller.Action](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.SmoothScroller.Action)
  - [RecyclerView.State](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.State)
  - [RecyclerView.ViewCacheExtension](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ViewCacheExtension)
  - [RecyclerView.ViewHolder](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ViewHolder)
  - [RecyclerViewAccessibilityDelegate](https://developer.android.com/reference/android/support/v7/widget/RecyclerViewAccessibilityDelegate)
  - [RecyclerViewAccessibilityDelegate.ItemDelegate](https://developer.android.com/reference/android/support/v7/widget/RecyclerViewAccessibilityDelegate.ItemDelegate)
  - [SearchView](https://developer.android.com/reference/android/support/v7/widget/SearchView)
  - [ShareActionProvider](https://developer.android.com/reference/android/support/v7/widget/ShareActionProvider)
  - [SimpleItemAnimator](https://developer.android.com/reference/android/support/v7/widget/SimpleItemAnimator)
  - [SnapHelper](https://developer.android.com/reference/android/support/v7/widget/SnapHelper)
  - [StaggeredGridLayoutManager](https://developer.android.com/reference/android/support/v7/widget/StaggeredGridLayoutManager)
  - [StaggeredGridLayoutManager.LayoutParams](https://developer.android.com/reference/android/support/v7/widget/StaggeredGridLayoutManager.LayoutParams)
  - [SwitchCompat](https://developer.android.com/reference/android/support/v7/widget/SwitchCompat)
  - [ThemedSpinnerAdapter.Helper](https://developer.android.com/reference/android/support/v7/widget/ThemedSpinnerAdapter.Helper)
  - [Toolbar](https://developer.android.com/reference/android/support/v7/widget/Toolbar)
  - [Toolbar.LayoutParams](https://developer.android.com/reference/android/support/v7/widget/Toolbar.LayoutParams)
  - [Toolbar.SavedState](https://developer.android.com/reference/android/support/v7/widget/Toolbar.SavedState)
  - [TooltipCompat](https://developer.android.com/reference/android/support/v7/widget/TooltipCompat)