Android APIs
public static class

AppBarLayout.LayoutParams

extends LinearLayout.LayoutParams
java.lang.Object
   ↳ android.view.ViewGroup.LayoutParams
     ↳ android.view.ViewGroup.MarginLayoutParams
       ↳ android.widget.LinearLayout.LayoutParams
         ↳ android.support.design.widget.AppBarLayout.LayoutParams

Summary

XML Attributes
Attribute Name Related Method Description
android.support.design:layout_scrollFlags setScrollFlags(int)  
android.support.design:layout_scrollInterpolator setScrollInterpolator(Interpolator) An interpolator to use when scrolling this View. 
[Expand]
Inherited XML Attributes
From class android.widget.LinearLayout.LayoutParams
From class android.view.ViewGroup.MarginLayoutParams
From class android.view.ViewGroup.LayoutParams
Constants
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.
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.
int SCROLL_FLAG_EXIT_UNTIL_COLLAPSED When exiting (scrolling off screen) the view will be scrolled until it is 'collapsed'.
int SCROLL_FLAG_SCROLL The view will be scroll in direct relation to scroll events.
[Expand]
Inherited Constants
From class android.view.ViewGroup.LayoutParams
[Expand]
Inherited Fields
From class android.widget.LinearLayout.LayoutParams
From class android.view.ViewGroup.MarginLayoutParams
From class android.view.ViewGroup.LayoutParams
Public Constructors
AppBarLayout.LayoutParams(Context c, AttributeSet attrs)
AppBarLayout.LayoutParams(int width, int height)
AppBarLayout.LayoutParams(int width, int height, float weight)
AppBarLayout.LayoutParams(ViewGroup.LayoutParams p)
AppBarLayout.LayoutParams(ViewGroup.MarginLayoutParams source)
AppBarLayout.LayoutParams(LinearLayout.LayoutParams source)
AppBarLayout.LayoutParams(AppBarLayout.LayoutParams source)
Public Methods
int getScrollFlags()
Returns the scrolling flags.
Interpolator getScrollInterpolator()
Returns the Interpolator being used for scrolling the view associated with this AppBarLayout.LayoutParams.
void setScrollFlags(int flags)
Set the scrolling flags.
void setScrollInterpolator(Interpolator interpolator)
Set the interpolator to when scrolling the view associated with this AppBarLayout.LayoutParams.
[Expand]
Inherited Methods
From class android.widget.LinearLayout.LayoutParams
From class android.view.ViewGroup.MarginLayoutParams
From class android.view.ViewGroup.LayoutParams
From class java.lang.Object

XML Attributes

android.support.design:layout_scrollFlags

Related Methods

android.support.design:layout_scrollInterpolator

An interpolator to use when scrolling this View. Only takes effect when View is scrollable.

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

This is a private symbol.

Constants

public static final 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.

Constant Value: 4 (0x00000004)

public static final 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.

Constant Value: 8 (0x00000008)

public static final 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.

Constant Value: 2 (0x00000002)

public static final 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.

Constant Value: 1 (0x00000001)

Public Constructors

public AppBarLayout.LayoutParams (Context c, AttributeSet attrs)

public AppBarLayout.LayoutParams (int width, int height)

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

public AppBarLayout.LayoutParams (ViewGroup.LayoutParams p)

public AppBarLayout.LayoutParams (ViewGroup.MarginLayoutParams source)

public AppBarLayout.LayoutParams (LinearLayout.LayoutParams source)

public AppBarLayout.LayoutParams (AppBarLayout.LayoutParams source)

Public Methods

public int getScrollFlags ()

Returns the scrolling flags.

public Interpolator getScrollInterpolator ()

Returns the Interpolator being used for scrolling the view associated with this AppBarLayout.LayoutParams. Null indicates 'normal' 1-to-1 scrolling.

public void setScrollFlags (int flags)

public void setScrollInterpolator (Interpolator interpolator)

Set the interpolator to when scrolling the view associated with this AppBarLayout.LayoutParams.

Parameters
interpolator the interpolator to use, or null to use normal 1-to-1 scrolling.