belongs to Maven artifact com.android.support:design:27.1.0
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
Constants | |
---|---|
int |
COLLAPSE_MODE_OFF
The view will act as normal with no collapsing behavior. |
int |
COLLAPSE_MODE_PARALLAX
The view will scroll in a parallax fashion. |
int |
COLLAPSE_MODE_PIN
The view will pin in place until it reaches the bottom of the
|
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()
Returns the requested collapse mode. |
float
|
getParallaxMultiplier()
Returns the parallax scroll multiplier used in conjunction with
|
void
|
setCollapseMode(int collapseMode)
Set the collapse mode. |
void
|
setParallaxMultiplier(float multiplier)
Set the parallax scroll multiplier used in conjunction with
|
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
The view will act as normal with no collapsing behavior.
Constant Value: 0 (0x00000000)
COLLAPSE_MODE_PARALLAX
int COLLAPSE_MODE_PARALLAX
The view will scroll in a parallax fashion. See setParallaxMultiplier(float)
to change the multiplier used.
Constant Value: 2 (0x00000002)
COLLAPSE_MODE_PIN
int COLLAPSE_MODE_PIN
The view will pin in place until it reaches the bottom of the
CollapsingToolbarLayout
.
Constant Value: 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 the requested collapse mode.
Returns | |
---|---|
int |
the current mode. One of COLLAPSE_MODE_OFF , COLLAPSE_MODE_PIN
or COLLAPSE_MODE_PARALLAX .
|
getParallaxMultiplier
float getParallaxMultiplier ()
Returns the parallax scroll multiplier used in conjunction with
COLLAPSE_MODE_PARALLAX
.
Returns | |
---|---|
float |
See also:
setCollapseMode
void setCollapseMode (int collapseMode)
Set the collapse mode.
Parameters | |
---|---|
collapseMode |
int : one of COLLAPSE_MODE_OFF , COLLAPSE_MODE_PIN
or COLLAPSE_MODE_PARALLAX .
|
setParallaxMultiplier
void setParallaxMultiplier (float multiplier)
Set the parallax scroll multiplier used in conjunction with
COLLAPSE_MODE_PARALLAX
. A value of 0.0
indicates no movement at all,
1.0f
indicates normal scroll movement.
Parameters | |
---|---|
multiplier |
float : the multiplier. |
See also:
Annotations
Interfaces
- AppBarLayout.OnOffsetChangedListener
- BaseTransientBottomBar.ContentViewCallback
- BottomNavigationView.OnNavigationItemReselectedListener
- BottomNavigationView.OnNavigationItemSelectedListener
- CoordinatorLayout.AttachedBehavior
- NavigationView.OnNavigationItemSelectedListener
- SwipeDismissBehavior.OnDismissListener
- TabLayout.OnTabSelectedListener
Classes
- AppBarLayout
- AppBarLayout.Behavior
- AppBarLayout.Behavior.DragCallback
- AppBarLayout.Behavior.SavedState
- AppBarLayout.LayoutParams
- AppBarLayout.ScrollingViewBehavior
- BaseTransientBottomBar
- BaseTransientBottomBar.BaseCallback
- BottomNavigationView
- BottomSheetBehavior
- BottomSheetBehavior.BottomSheetCallback
- BottomSheetBehavior.SavedState
- BottomSheetDialog
- BottomSheetDialogFragment
- CollapsingToolbarLayout
- CollapsingToolbarLayout.LayoutParams
- CoordinatorLayout
- CoordinatorLayout.Behavior
- CoordinatorLayout.LayoutParams
- CoordinatorLayout.SavedState
- FloatingActionButton
- FloatingActionButton.Behavior
- FloatingActionButton.OnVisibilityChangedListener
- NavigationView
- NavigationView.SavedState
- Snackbar
- Snackbar.Callback
- SwipeDismissBehavior
- TabItem
- TabLayout
- TabLayout.Tab
- TabLayout.TabLayoutOnPageChangeListener
- TabLayout.ViewPagerOnTabSelectedListener
- TextInputEditText
- TextInputLayout