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 | ||||
XML attributes |
|
|---|---|
android.support.design:layout_scrollFlags |
|
android.support.design:layout_scrollInterpolator |
An interpolator to use when scrolling this View. |
Inherited XML attributes |
|
|---|---|
android.widget.LinearLayout.LayoutParams
|
|
android.view.ViewGroup.MarginLayoutParams
|
|
android.view.ViewGroup.LayoutParams
|
|
常量(Constants) |
|
|---|---|
int |
SCROLL_FLAG_ENTER_ALWAYS 当进入(在屏幕上滚动)时,无论滚动视图是否滚动,视图都将滚动到任何向下滚动事件。 |
int |
SCROLL_FLAG_ENTER_ALWAYS_COLLAPSED “enterAlways”的附加标志将修改返回视图仅仅是初始回滚到其折叠高度。 |
int |
SCROLL_FLAG_EXIT_UNTIL_COLLAPSED 当退出(滚动屏幕)时,视图将滚动直至“折叠”。 |
int |
SCROLL_FLAG_SCROLL 该视图将与滚动事件直接相关滚动。 |
int |
SCROLL_FLAG_SNAP 在滚动结束时,如果视图只是部分可见,那么它将被捕捉并滚动到最近的边缘。 |
Inherited constants |
|---|
android.view.ViewGroup.LayoutParams
|
Inherited fields |
|---|
android.widget.LinearLayout.LayoutParams
|
android.view.ViewGroup.MarginLayoutParams
|
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() 返回滚动标志。 |
Interpolator |
getScrollInterpolator() 返回 |
void |
setScrollFlags(int flags) 设置滚动标志。 |
void |
setScrollInterpolator(Interpolator interpolator) 当滚动与此 |
继承方法(Inherited methods) |
|
|---|---|
android.widget.LinearLayout.LayoutParams
|
|
android.view.ViewGroup.MarginLayoutParams
|
|
android.view.ViewGroup.LayoutParams
|
|
java.lang.Object
|
|
相关方法:
滚动此视图时使用的插补器。 仅当View可滚动时才会生效。
可能是另一种资源的引用,其形式为“ @[+][package:]type/name ”或形式为“一个主题属性 ?[package:]type/name ”。
相关方法:
int SCROLL_FLAG_ENTER_ALWAYS
当进入(在屏幕上滚动)时,无论滚动视图是否滚动,视图都将滚动到任何向下滚动事件。 这通常被称为“快速回归”模式。
常量值:4(0x00000004)
int SCROLL_FLAG_ENTER_ALWAYS_COLLAPSED
“enterAlways”的附加标志将修改返回视图仅仅是初始回滚到其折叠高度。 一旦滚动视图到达滚动范围的末尾,此视图的其余部分将滚动到视图中。 折叠的高度由视图的最小高度定义。
常量值:8(0x00000008)
int SCROLL_FLAG_EXIT_UNTIL_COLLAPSED
当退出(滚动屏幕)时,视图将滚动直至“折叠”。 折叠的高度由视图的最小高度定义。
常量值:2(0x00000002)
int SCROLL_FLAG_SCROLL
该视图将与滚动事件直接相关滚动。 此标志需要设置为其他任何标志才能生效。 如果在此之前的兄弟视图没有这个标志,那么这个值不起作用。
常数值:1(0x00000001)
int SCROLL_FLAG_SNAP
在滚动结束时,如果视图只是部分可见,那么它将被捕捉并滚动到最近的边缘。 例如,如果视图只显示最低25%,则会完全滚动屏幕。 相反,如果最下面的75%是可见的,那么它将完全滚动到视图中。
常量值:16(0x00000010)
AppBarLayout.LayoutParams (Context c, AttributeSet attrs)
| 参数(Parameters) | |
|---|---|
c |
Context
|
attrs |
AttributeSet
|
AppBarLayout.LayoutParams (int width,
int height)
| 参数(Parameters) | |
|---|---|
width |
int
|
height |
int
|
AppBarLayout.LayoutParams (int width,
int height,
float weight)
| 参数(Parameters) | |
|---|---|
width |
int
|
height |
int
|
weight |
float
|
AppBarLayout.LayoutParams (ViewGroup.LayoutParams p)
| 参数(Parameters) | |
|---|---|
p |
ViewGroup.LayoutParams
|
AppBarLayout.LayoutParams (ViewGroup.MarginLayoutParams source)
| 参数(Parameters) | |
|---|---|
source |
ViewGroup.MarginLayoutParams
|
AppBarLayout.LayoutParams (LinearLayout.LayoutParams source)
| 参数(Parameters) | |
|---|---|
source |
LinearLayout.LayoutParams
|
AppBarLayout.LayoutParams (AppBarLayout.LayoutParams source)
| 参数(Parameters) | |
|---|---|
source |
AppBarLayout.LayoutParams
|
int getScrollFlags ()
返回滚动标志。
相关XML属性:
| 返回(Returns) | |
|---|---|
int |
|
也可以看看:
Interpolator getScrollInterpolator ()
返回Interpolator被用于滚动与此相关的看法AppBarLayout.LayoutParams 。 空指示“正常”1对1滚动。
相关XML属性:
| 返回(Returns) | |
|---|---|
Interpolator |
|
void setScrollFlags (int flags)
设置滚动标志。
相关XML属性:
| 参数(Parameters) | |
|---|---|
flags |
int: bitwise int of SCROLL_FLAG_SCROLL, SCROLL_FLAG_EXIT_UNTIL_COLLAPSED, SCROLL_FLAG_ENTER_ALWAYS, SCROLL_FLAG_ENTER_ALWAYS_COLLAPSED and SCROLL_FLAG_SNAP. |
也可以看看:
void setScrollInterpolator (Interpolator interpolator)
当滚动与此相关的视图 AppBarLayout.LayoutParams时,将插补器设置为。
相关XML属性:
| 参数(Parameters) | |
|---|---|
interpolator |
Interpolator: the interpolator to use, or null to use normal 1-to-1 scrolling. |
也可以看看: