public static class AppBarLayout.LayoutParams extends LinearLayout.LayoutParams
Modifier and Type | Class and Description |
---|---|
static interface |
AppBarLayout.LayoutParams.ScrollFlags |
Modifier and Type | Field and Description |
---|---|
static 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.
|
static 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.
|
static int |
SCROLL_FLAG_EXIT_UNTIL_COLLAPSED
When exiting (scrolling off screen) the view will be scrolled until it is
'collapsed'.
|
static int |
SCROLL_FLAG_SCROLL
The view will be scroll in direct relation to scroll events.
|
static 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.
|
gravity, weight
bottomMargin, DEFAULT_MARGIN_RELATIVE, leftMargin, rightMargin, topMargin
FILL_PARENT, height, layoutAnimationParameters, MATCH_PARENT, width, WRAP_CONTENT
Constructor and Description |
---|
LayoutParams(AppBarLayout.LayoutParams source) |
LayoutParams(Context c,
AttributeSet attrs) |
LayoutParams(int width,
int height) |
LayoutParams(int width,
int height,
float weight) |
LayoutParams(LinearLayout.LayoutParams source) |
LayoutParams(ViewGroup.LayoutParams p) |
LayoutParams(ViewGroup.MarginLayoutParams source) |
Modifier and Type | Method and Description |
---|---|
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 . |
debug, encodeProperties
copyMarginsFrom, getLayoutDirection, getMarginEnd, getMarginStart, isLayoutRtl, isMarginRelative, onDebugDraw, resolveLayoutDirection, setLayoutDirection, setMarginEnd, setMargins, setMarginsRelative, setMarginStart
setBaseAttributes, sizeToString
public static final int SCROLL_FLAG_SCROLL
public static final int SCROLL_FLAG_EXIT_UNTIL_COLLAPSED
public static final int SCROLL_FLAG_ENTER_ALWAYS
public static final int SCROLL_FLAG_ENTER_ALWAYS_COLLAPSED
public static final int SCROLL_FLAG_SNAP
public LayoutParams(Context c, AttributeSet attrs)
public LayoutParams(int width, int height)
public LayoutParams(int width, int height, float weight)
public LayoutParams(ViewGroup.LayoutParams p)
public LayoutParams(ViewGroup.MarginLayoutParams source)
public LayoutParams(LinearLayout.LayoutParams source)
public LayoutParams(AppBarLayout.LayoutParams source)
public void setScrollFlags(int flags)
flags
- bitwise int of SCROLL_FLAG_SCROLL
,
SCROLL_FLAG_EXIT_UNTIL_COLLAPSED
, SCROLL_FLAG_ENTER_ALWAYS
,
SCROLL_FLAG_ENTER_ALWAYS_COLLAPSED
and SCROLL_FLAG_SNAP
.getScrollFlags()
public int getScrollFlags()
setScrollFlags(int)
public void setScrollInterpolator(Interpolator interpolator)
AppBarLayout.LayoutParams
.interpolator
- the interpolator to use, or null to use normal 1-to-1 scrolling.getScrollInterpolator()
public Interpolator getScrollInterpolator()
Interpolator
being used for scrolling the view associated with this
AppBarLayout.LayoutParams
. Null indicates 'normal' 1-to-1 scrolling.setScrollInterpolator(Interpolator)