# AppBarLayout.LayoutParams

added in [version 22.2.0](https://developer.android.com/topic/libraries/support-library/revisions)   
belongs to Maven artifact com.android.support:design:27.1.0  
Summary: [XML Attrs](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#lattrs) \| [Constants](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#constants) \| [Inherited Constants](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#inhconstants) \| [Inherited Fields](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#inhfields) \| [Ctors](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#pubctors) \| [Methods](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#inhmethods) \| [\[Expand All\]](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#)  

# AppBarLayout.LayoutParams

| 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


class
AppBarLayout.LayoutParams
`


`


`

`


`

`


`

`

extends `[LinearLayout.LayoutParams](https://developer.android.com/reference/android/widget/LinearLayout.LayoutParams.html)`


`

`


`

|---|---|---|---|---------------------------------------------------------|
| java.lang.Object                                                    |||||
| ↳ | [android.view.ViewGroup.LayoutParams](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html) ||||
|   | ↳ | [android.view.ViewGroup.MarginLayoutParams](https://developer.android.com/reference/android/view/ViewGroup.MarginLayoutParams.html) |||
|   |   | ↳ | [android.widget.LinearLayout.LayoutParams](https://developer.android.com/reference/android/widget/LinearLayout.LayoutParams.html) ||
|   |   |   | ↳ | android.support.design.widget.AppBarLayout.LayoutParams |

<br />

*** ** * ** ***

## Summary

|                                                                                            ### XML attributes                                                                                            ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [`AppBarLayout_Layout_layout_scrollFlags`](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#attr_AppBarLayout_Layout_layout_scrollFlags)               |   |
| [`AppBarLayout_Layout_layout_scrollInterpolator`](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#attr_AppBarLayout_Layout_layout_scrollInterpolator) |   |

|                                                                                                                                                  ### Constants                                                                                                                                                  ||
|-------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | [SCROLL_FLAG_ENTER_ALWAYS](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#SCROLL_FLAG_ENTER_ALWAYS) When entering (scrolling on screen) the view will scroll on any downwards scroll event, regardless of whether the scrolling view is also scrolling. |
| `int` | [SCROLL_FLAG_ENTER_ALWAYS_COLLAPSED](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#SCROLL_FLAG_ENTER_ALWAYS_COLLAPSED) An additional flag for 'enterAlways' which modifies the returning view to only initially scroll back to it's collapsed height.  |
| `int` | [SCROLL_FLAG_EXIT_UNTIL_COLLAPSED](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#SCROLL_FLAG_EXIT_UNTIL_COLLAPSED) When exiting (scrolling off screen) the view will be scrolled until it is 'collapsed'.                                              |
| `int` | [SCROLL_FLAG_SCROLL](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#SCROLL_FLAG_SCROLL) The view will be scroll in direct relation to scroll events.                                                                                                    |
| `int` | [SCROLL_FLAG_SNAP](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#SCROLL_FLAG_SNAP) Upon a scroll ending, if the view is only partially visible then it will be snapped and scrolled to it's closest edge.                                              |

|                                                                                                                                                               ### Inherited constants                                                                                                                                                                |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#)From class ` android.view.ViewGroup.LayoutParams ` |-------|----------------| | `int` | `FILL_PARENT`  | | `int` | `MATCH_PARENT` | | `int` | `WRAP_CONTENT` | |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ### Inherited fields                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#)From class ` android.widget.LinearLayout.LayoutParams ` |-----------------|-----------| | ` public int`   | `gravity` | | ` public float` | `weight`  |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#)From class ` android.view.ViewGroup.MarginLayoutParams ` |---------------|----------------| | ` public int` | `bottomMargin` | | ` public int` | `leftMargin`   | | ` public int` | `rightMargin`  | | ` public int` | `topMargin`    |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#)From class ` android.view.ViewGroup.LayoutParams ` |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------| | ` public int`                                                                                                                                                                | `height`                    | | ` public `[LayoutAnimationController.AnimationParameters](https://developer.android.com/reference/android/view/animation/LayoutAnimationController.AnimationParameters.html) | `layoutAnimationParameters` | | ` public int`                                                                                                                                                                | `width`                     | |

|                                                                                                                                                                                         ### Public constructors                                                                                                                                                                                          ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[AppBarLayout.LayoutParams](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#AppBarLayout.LayoutParams(android.content.Context, android.util.AttributeSet))`(`[Context](https://developer.android.com/reference/android/content/Context.html)` c, `[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html)` attrs) ` |
| ` `[AppBarLayout.LayoutParams](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#AppBarLayout.LayoutParams(int, int))`(int width, int height) `                                                                                                                                                                                                         |
| ` `[AppBarLayout.LayoutParams](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#AppBarLayout.LayoutParams(int, int, float))`(int width, int height, float weight) `                                                                                                                                                                                    |
| ` `[AppBarLayout.LayoutParams](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#AppBarLayout.LayoutParams(android.view.ViewGroup.LayoutParams))`(`[ViewGroup.LayoutParams](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html)` p) `                                                                                     |
| ` `[AppBarLayout.LayoutParams](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#AppBarLayout.LayoutParams(android.view.ViewGroup.MarginLayoutParams))`(`[ViewGroup.MarginLayoutParams](https://developer.android.com/reference/android/view/ViewGroup.MarginLayoutParams.html)` source) `                                                              |
| ` `[AppBarLayout.LayoutParams](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#AppBarLayout.LayoutParams(android.widget.LinearLayout.LayoutParams))`(`[LinearLayout.LayoutParams](https://developer.android.com/reference/android/widget/LinearLayout.LayoutParams.html)` source) `                                                                   |
| ` `[AppBarLayout.LayoutParams](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#AppBarLayout.LayoutParams(android.support.design.widget.AppBarLayout.LayoutParams))`(`[AppBarLayout.LayoutParams](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams)` source) `                                          |

|                                                                                                                                                                                                                                                                                                 ### Public methods                                                                                                                                                                                                                                                                                                 ||
|-----------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` int`                                                                                              | ` `[getScrollFlags](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#getScrollFlags())`() ` Returns the scrolling flags.                                                                                                                                                                                                                                                                                                                                       |
| ` `[Interpolator](https://developer.android.com/reference/android/view/animation/Interpolator.html) | ` `[getScrollInterpolator](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#getScrollInterpolator())`() ` Returns the [Interpolator](https://developer.android.com/reference/android/view/animation/Interpolator.html) being used for scrolling the view associated with this [AppBarLayout.LayoutParams](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams).                                                    |
| ` void`                                                                                             | ` `[setScrollFlags](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#setScrollFlags(int))`(int flags) ` Set the scrolling flags.                                                                                                                                                                                                                                                                                                                               |
| ` void`                                                                                             | ` `[setScrollInterpolator](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#setScrollInterpolator(android.view.animation.Interpolator))`(`[Interpolator](https://developer.android.com/reference/android/view/animation/Interpolator.html)` interpolator) ` Set the interpolator to when scrolling the view associated with this [AppBarLayout.LayoutParams](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams). |

| ### Inherited methods |
|-----------------------|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#)From class ` `[android.widget.LinearLayout.LayoutParams](https://developer.android.com/reference/android/widget/LinearLayout.LayoutParams.html)` ` |-----------|------------------------| | ` String` | ` debug(String arg0) ` | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#)From class ` `[android.view.ViewGroup.MarginLayoutParams](https://developer.android.com/reference/android/view/ViewGroup.MarginLayoutParams.html)` ` |------------|--------------------------------------------------------| | ` int`     | ` getLayoutDirection() `                               | | ` int`     | ` getMarginEnd() `                                     | | ` int`     | ` getMarginStart() `                                   | | ` boolean` | ` isMarginRelative() `                                 | | ` void`    | ` resolveLayoutDirection(int arg0) `                   | | ` void`    | ` setLayoutDirection(int arg0) `                       | | ` void`    | ` setMarginEnd(int arg0) `                             | | ` void`    | ` setMarginStart(int arg0) `                           | | ` void`    | ` setMargins(int arg0, int arg1, int arg2, int arg3) ` | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#)From class ` `[android.view.ViewGroup.LayoutParams](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html)` ` |---------|---------------------------------------------------------------------------------------------------------------------------------------------| | ` void` | ` resolveLayoutDirection(int arg0) `                                                                                                        | | ` void` | ` setBaseAttributes(`[TypedArray](https://developer.android.com/reference/android/content/res/TypedArray.html)` arg0, int arg1, int arg2) ` | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#)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() `                    | ||

## XML attributes

### AppBarLayout_Layout_layout_scrollFlags

<br />

<br />

**Related methods:**

- [setScrollFlags(int)](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#setScrollFlags(int))

### AppBarLayout_Layout_layout_scrollInterpolator

<br />

<br />

**Related methods:**

- [setScrollInterpolator(Interpolator)](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#setScrollInterpolator(android.view.animation.Interpolator))

## Constants

### SCROLL_FLAG_ENTER_ALWAYS

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

```
int SCROLL_FLAG_ENTER_ALWAYS
```

When entering (scrolling on screen) the view will scroll on any downwards
scroll event, regardless of whether the scrolling view is also scrolling. This
is commonly referred to as the 'quick return' pattern.

<br />

Constant Value:

4
(0x00000004)


### SCROLL_FLAG_ENTER_ALWAYS_COLLAPSED

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

```
int SCROLL_FLAG_ENTER_ALWAYS_COLLAPSED
```

An additional flag for 'enterAlways' which modifies the returning view to
only initially scroll back to it's collapsed height. Once the scrolling view has
reached the end of it's scroll range, the remainder of this view will be scrolled
into view. The collapsed height is defined by the view's minimum height.

<br />

**See also:**

- [getMinimumHeight(View)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getMinimumHeight(android.view.View))
- [setMinimumHeight(int)](https://developer.android.com/https://developer.android.com/reference/android/view/View#setMinimumHeight(int))

Constant Value:

8
(0x00000008)


### SCROLL_FLAG_EXIT_UNTIL_COLLAPSED

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

```
int SCROLL_FLAG_EXIT_UNTIL_COLLAPSED
```

When exiting (scrolling off screen) the view will be scrolled until it is
'collapsed'. The collapsed height is defined by the view's minimum height.

<br />

**See also:**

- [getMinimumHeight(View)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getMinimumHeight(android.view.View))
- [setMinimumHeight(int)](https://developer.android.com/https://developer.android.com/reference/android/view/View#setMinimumHeight(int))

Constant Value:

2
(0x00000002)


### SCROLL_FLAG_SCROLL

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

```
int SCROLL_FLAG_SCROLL
```

The view will be scroll in direct relation to scroll events. This flag needs to be
set for any of the other flags to take effect. If any sibling views
before this one do not have this flag, then this value has no effect.

<br />

Constant Value:

1
(0x00000001)


### SCROLL_FLAG_SNAP

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

```
int SCROLL_FLAG_SNAP
```

Upon a scroll ending, if the view is only partially visible then it will be snapped
and scrolled to it's closest edge. For example, if the view only has it's bottom 25%
displayed, it will be scrolled off screen completely. Conversely, if it's bottom 75%
is visible then it will be scrolled fully into view.

<br />

Constant Value:

16
(0x00000010)


## Public constructors

### AppBarLayout.LayoutParams

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

```
AppBarLayout.LayoutParams (Context c, 
                AttributeSet attrs)
```

<br />

<br />

|           Parameters           ||
|---------|-----------------------|
| `c`     | `Context` <br />      |
| `attrs` | `AttributeSet` <br /> |

### AppBarLayout.LayoutParams

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

```
AppBarLayout.LayoutParams (int width, 
                int height)
```

<br />

<br />

|       Parameters       ||
|----------|--------------|
| `width`  | `int` <br /> |
| `height` | `int` <br /> |

### AppBarLayout.LayoutParams

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

```
AppBarLayout.LayoutParams (int width, 
                int height, 
                float weight)
```

<br />

<br />

|        Parameters        ||
|----------|----------------|
| `width`  | `int` <br />   |
| `height` | `int` <br />   |
| `weight` | `float` <br /> |

### AppBarLayout.LayoutParams

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

```
AppBarLayout.LayoutParams (ViewGroup.LayoutParams p)
```

<br />

<br />

|              Parameters              ||
|-----|---------------------------------|
| `p` | `ViewGroup.LayoutParams` <br /> |

### AppBarLayout.LayoutParams

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

```
AppBarLayout.LayoutParams (ViewGroup.MarginLayoutParams source)
```

<br />

<br />

|                   Parameters                    ||
|----------|---------------------------------------|
| `source` | `ViewGroup.MarginLayoutParams` <br /> |

### AppBarLayout.LayoutParams

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

```
AppBarLayout.LayoutParams (LinearLayout.LayoutParams source)
```

<br />

<br />

|                  Parameters                  ||
|----------|------------------------------------|
| `source` | `LinearLayout.LayoutParams` <br /> |

### AppBarLayout.LayoutParams

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

```
AppBarLayout.LayoutParams (AppBarLayout.LayoutParams source)
```

<br />

<br />

|                  Parameters                  ||
|----------|------------------------------------|
| `source` | `AppBarLayout.LayoutParams` <br /> |

## Public methods

### getScrollFlags

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

```
int getScrollFlags ()
```

Returns the scrolling flags.

<br />

**Related XML Attributes:**

- [AppBarLayout_Layout_layout_scrollFlags](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#attr_AppBarLayout_Layout_layout_scrollFlags)

|    Returns    ||
|-------|--------|
| `int` | <br /> |

**See also:**

- [setScrollFlags(int)](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#setScrollFlags(int))  

### getScrollInterpolator

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

```
Interpolator getScrollInterpolator ()
```

Returns the [Interpolator](https://developer.android.com/reference/android/view/animation/Interpolator.html) being used for scrolling the view associated with this
[AppBarLayout.LayoutParams](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams). Null indicates 'normal' 1-to-1 scrolling.

<br />

**Related XML Attributes:**

- [AppBarLayout_Layout_layout_scrollInterpolator](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#attr_AppBarLayout_Layout_layout_scrollInterpolator)

|                                                 Returns                                                  ||
|--------------------------------------------------------------------------------------------------|--------|
| [Interpolator](https://developer.android.com/reference/android/view/animation/Interpolator.html) | <br /> |

**See also:**

- [setScrollInterpolator(Interpolator)](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#setScrollInterpolator(android.view.animation.Interpolator))  

### setScrollFlags

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

```
void setScrollFlags (int flags)
```

Set the scrolling flags.

<br />

**Related XML Attributes:**

- [AppBarLayout_Layout_layout_scrollFlags](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#attr_AppBarLayout_Layout_layout_scrollFlags)

|                                                                                                                                                                                                                                                                                                                                                                                                           Parameters                                                                                                                                                                                                                                                                                                                                                                                                           ||
|---------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `flags` | `int`: bitwise int of [SCROLL_FLAG_SCROLL](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#SCROLL_FLAG_SCROLL), [SCROLL_FLAG_EXIT_UNTIL_COLLAPSED](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#SCROLL_FLAG_EXIT_UNTIL_COLLAPSED), [SCROLL_FLAG_ENTER_ALWAYS](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#SCROLL_FLAG_ENTER_ALWAYS), [SCROLL_FLAG_ENTER_ALWAYS_COLLAPSED](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#SCROLL_FLAG_ENTER_ALWAYS_COLLAPSED) and [SCROLL_FLAG_SNAP](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#SCROLL_FLAG_SNAP). <br /> |

**See also:**

- [getScrollFlags()](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#getScrollFlags())  

### setScrollInterpolator

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

```
void setScrollInterpolator (Interpolator interpolator)
```

Set the interpolator to when scrolling the view associated with this
[AppBarLayout.LayoutParams](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams).

<br />

**Related XML Attributes:**

- [AppBarLayout_Layout_layout_scrollInterpolator](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#attr_AppBarLayout_Layout_layout_scrollInterpolator)

|                                               Parameters                                                ||
|----------------|-----------------------------------------------------------------------------------------|
| `interpolator` | `Interpolator`: the interpolator to use, or null to use normal 1-to-1 scrolling. <br /> |

**See also:**

- [getScrollInterpolator()](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams#getScrollInterpolator())  
-

  ## Annotations

  - [CoordinatorLayout.DefaultBehavior](https://developer.android.com/reference/android/support/design/widget/CoordinatorLayout.DefaultBehavior)
-

  ## Interfaces

  - [AppBarLayout.OnOffsetChangedListener](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.OnOffsetChangedListener)
  - [BaseTransientBottomBar.ContentViewCallback](https://developer.android.com/reference/android/support/design/widget/BaseTransientBottomBar.ContentViewCallback)
  - [BottomNavigationView.OnNavigationItemReselectedListener](https://developer.android.com/reference/android/support/design/widget/BottomNavigationView.OnNavigationItemReselectedListener)
  - [BottomNavigationView.OnNavigationItemSelectedListener](https://developer.android.com/reference/android/support/design/widget/BottomNavigationView.OnNavigationItemSelectedListener)
  - [CoordinatorLayout.AttachedBehavior](https://developer.android.com/reference/android/support/design/widget/CoordinatorLayout.AttachedBehavior)
  - [NavigationView.OnNavigationItemSelectedListener](https://developer.android.com/reference/android/support/design/widget/NavigationView.OnNavigationItemSelectedListener)
  - [SwipeDismissBehavior.OnDismissListener](https://developer.android.com/reference/android/support/design/widget/SwipeDismissBehavior.OnDismissListener)
  - [TabLayout.OnTabSelectedListener](https://developer.android.com/reference/android/support/design/widget/TabLayout.OnTabSelectedListener)
-

  ## Classes

  - [AppBarLayout](https://developer.android.com/reference/android/support/design/widget/AppBarLayout)
  - [AppBarLayout.Behavior](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.Behavior)
  - [AppBarLayout.Behavior.DragCallback](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.Behavior.DragCallback)
  - [AppBarLayout.Behavior.SavedState](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.Behavior.SavedState)
  - [AppBarLayout.LayoutParams](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.LayoutParams)
  - [AppBarLayout.ScrollingViewBehavior](https://developer.android.com/reference/android/support/design/widget/AppBarLayout.ScrollingViewBehavior)
  - [BaseTransientBottomBar](https://developer.android.com/reference/android/support/design/widget/BaseTransientBottomBar)
  - [BaseTransientBottomBar.BaseCallback](https://developer.android.com/reference/android/support/design/widget/BaseTransientBottomBar.BaseCallback)
  - [BottomNavigationView](https://developer.android.com/reference/android/support/design/widget/BottomNavigationView)
  - [BottomSheetBehavior](https://developer.android.com/reference/android/support/design/widget/BottomSheetBehavior)
  - [BottomSheetBehavior.BottomSheetCallback](https://developer.android.com/reference/android/support/design/widget/BottomSheetBehavior.BottomSheetCallback)
  - [BottomSheetBehavior.SavedState](https://developer.android.com/reference/android/support/design/widget/BottomSheetBehavior.SavedState)
  - [BottomSheetDialog](https://developer.android.com/reference/android/support/design/widget/BottomSheetDialog)
  - [BottomSheetDialogFragment](https://developer.android.com/reference/android/support/design/widget/BottomSheetDialogFragment)
  - [CollapsingToolbarLayout](https://developer.android.com/reference/android/support/design/widget/CollapsingToolbarLayout)
  - [CollapsingToolbarLayout.LayoutParams](https://developer.android.com/reference/android/support/design/widget/CollapsingToolbarLayout.LayoutParams)
  - [CoordinatorLayout](https://developer.android.com/reference/android/support/design/widget/CoordinatorLayout)
  - [CoordinatorLayout.Behavior](https://developer.android.com/reference/android/support/design/widget/CoordinatorLayout.Behavior)
  - [CoordinatorLayout.LayoutParams](https://developer.android.com/reference/android/support/design/widget/CoordinatorLayout.LayoutParams)
  - [CoordinatorLayout.SavedState](https://developer.android.com/reference/android/support/design/widget/CoordinatorLayout.SavedState)
  - [FloatingActionButton](https://developer.android.com/reference/android/support/design/widget/FloatingActionButton)
  - [FloatingActionButton.Behavior](https://developer.android.com/reference/android/support/design/widget/FloatingActionButton.Behavior)
  - [FloatingActionButton.OnVisibilityChangedListener](https://developer.android.com/reference/android/support/design/widget/FloatingActionButton.OnVisibilityChangedListener)
  - [NavigationView](https://developer.android.com/reference/android/support/design/widget/NavigationView)
  - [NavigationView.SavedState](https://developer.android.com/reference/android/support/design/widget/NavigationView.SavedState)
  - [Snackbar](https://developer.android.com/reference/android/support/design/widget/Snackbar)
  - [Snackbar.Callback](https://developer.android.com/reference/android/support/design/widget/Snackbar.Callback)
  - [SwipeDismissBehavior](https://developer.android.com/reference/android/support/design/widget/SwipeDismissBehavior)
  - [TabItem](https://developer.android.com/reference/android/support/design/widget/TabItem)
  - [TabLayout](https://developer.android.com/reference/android/support/design/widget/TabLayout)
  - [TabLayout.Tab](https://developer.android.com/reference/android/support/design/widget/TabLayout.Tab)
  - [TabLayout.TabLayoutOnPageChangeListener](https://developer.android.com/reference/android/support/design/widget/TabLayout.TabLayoutOnPageChangeListener)
  - [TabLayout.ViewPagerOnTabSelectedListener](https://developer.android.com/reference/android/support/design/widget/TabLayout.ViewPagerOnTabSelectedListener)
  - [TextInputEditText](https://developer.android.com/reference/android/support/design/widget/TextInputEditText)
  - [TextInputLayout](https://developer.android.com/reference/android/support/design/widget/TextInputLayout)