Most visited

Recently visited

CollapsingToolbarLayout.LayoutParams

public static class CollapsingToolbarLayout.LayoutParams
extends FrameLayout.LayoutParams

java.lang.Object
   ↳ android.view.ViewGroup.LayoutParams
     ↳ android.view.ViewGroup.MarginLayoutParams
       ↳ android.widget.FrameLayout.LayoutParams
         ↳ android.support.design.widget.CollapsingToolbarLayout.LayoutParams


Summary

Inherited XML attributes

From class android.widget.FrameLayout.LayoutParams
From class android.view.ViewGroup.MarginLayoutParams
From class android.view.ViewGroup.LayoutParams

Constants

int COLLAPSE_MODE_OFF

该视图将按照正常方式进行,没有崩溃行为。

int COLLAPSE_MODE_PARALLAX

视图将以视差方式滚动。

int COLLAPSE_MODE_PIN

该视图将固定到位,直到达到 CollapsingToolbarLayout的底部。

Inherited constants

From class android.widget.FrameLayout.LayoutParams
From class android.view.ViewGroup.LayoutParams

Inherited fields

From class android.widget.FrameLayout.LayoutParams
From class android.view.ViewGroup.MarginLayoutParams
From class android.view.ViewGroup.LayoutParams

Public constructors

CollapsingToolbarLayout.LayoutParams(Context c, AttributeSet attrs)
CollapsingToolbarLayout.LayoutParams(int width, int height)
CollapsingToolbarLayout.LayoutParams(int width, int height, int gravity)
CollapsingToolbarLayout.LayoutParams(ViewGroup.LayoutParams p)
CollapsingToolbarLayout.LayoutParams(ViewGroup.MarginLayoutParams source)
CollapsingToolbarLayout.LayoutParams(FrameLayout.LayoutParams source)

Public methods

int getCollapseMode()

返回请求的折叠模式。

float getParallaxMultiplier()

返回与 COLLAPSE_MODE_PARALLAX结合使用的视差滚动乘数。

void setCollapseMode(int collapseMode)

设置折叠模式。

void setParallaxMultiplier(float multiplier)

设置与 COLLAPSE_MODE_PARALLAX结合使用的视差滚动乘数。

Inherited methods

From class android.view.ViewGroup.MarginLayoutParams
From class android.view.ViewGroup.LayoutParams
From class java.lang.Object

Constants

COLLAPSE_MODE_OFF

int COLLAPSE_MODE_OFF

该视图将按照正常方式进行,没有崩溃行为。

常量值:0(0x00000000)

COLLAPSE_MODE_PARALLAX

int COLLAPSE_MODE_PARALLAX

视图将以视差方式滚动。 请参阅setParallaxMultiplier(float)来更改使用的乘数。

常量值:2(0x00000002)

COLLAPSE_MODE_PIN

int COLLAPSE_MODE_PIN

该视图将固定到位,直到达到 CollapsingToolbarLayout的底部。

常数值:1(0x00000001)

Public constructors

CollapsingToolbarLayout.LayoutParams

CollapsingToolbarLayout.LayoutParams (Context c, 
                AttributeSet attrs)

Parameters
c Context
attrs AttributeSet

CollapsingToolbarLayout.LayoutParams

CollapsingToolbarLayout.LayoutParams (int width, 
                int height)

Parameters
width int
height int

CollapsingToolbarLayout.LayoutParams

CollapsingToolbarLayout.LayoutParams (int width, 
                int height, 
                int gravity)

Parameters
width int
height int
gravity int

CollapsingToolbarLayout.LayoutParams

CollapsingToolbarLayout.LayoutParams (ViewGroup.LayoutParams p)

Parameters
p ViewGroup.LayoutParams

CollapsingToolbarLayout.LayoutParams

CollapsingToolbarLayout.LayoutParams (ViewGroup.MarginLayoutParams source)

Parameters
source ViewGroup.MarginLayoutParams

CollapsingToolbarLayout.LayoutParams

CollapsingToolbarLayout.LayoutParams (FrameLayout.LayoutParams source)

Parameters
source FrameLayout.LayoutParams

Public methods

getCollapseMode

int getCollapseMode ()

返回请求的折叠模式。

Returns
int the current mode. One of COLLAPSE_MODE_OFF, COLLAPSE_MODE_PIN or COLLAPSE_MODE_PARALLAX.

getParallaxMultiplier

float getParallaxMultiplier ()

返回与 COLLAPSE_MODE_PARALLAX结合使用的视差滚动乘数。

Returns
float

也可以看看:

setCollapseMode

void setCollapseMode (int collapseMode)

设置折叠模式。

Parameters
collapseMode int: one of COLLAPSE_MODE_OFF, COLLAPSE_MODE_PIN or COLLAPSE_MODE_PARALLAX.

setParallaxMultiplier

void setParallaxMultiplier (float multiplier)

设置与COLLAPSE_MODE_PARALLAX结合使用的视差滚动乘数。 0.0表示完全没有移动, 1.0f表示正常的滚动移动。

Parameters
multiplier float: the multiplier.

也可以看看:

Hooray!