public
static
class
CollapsingToolbarLayout.LayoutParams
extends FrameLayout.LayoutParams
java.lang.Object
|
↳ |
android.view.ViewGroup.LayoutParams
|
|
↳ |
android.view.ViewGroup.MarginLayoutParams
|
|
|
↳ |
android.widget.FrameLayout.LayoutParams
|
|
|
|
↳ |
com.google.android.material.appbar.CollapsingToolbarLayout.LayoutParams
|
Summary
Inherited constants |
From class
android.widget.FrameLayout.LayoutParams
|
From class
android.view.ViewGroup.LayoutParams
int |
FILL_PARENT
|
int |
MATCH_PARENT
|
int |
WRAP_CONTENT
|
|
Inherited fields |
From class
android.widget.FrameLayout.LayoutParams
|
From class
android.view.ViewGroup.MarginLayoutParams
public
int |
bottomMargin
|
public
int |
leftMargin
|
public
int |
rightMargin
|
public
int |
topMargin
|
|
From class
android.view.ViewGroup.LayoutParams
public
int |
height
|
public
LayoutAnimationController.AnimationParameters |
layoutAnimationParameters
|
public
int |
width
|
|
Inherited methods |
From class
android.view.ViewGroup.MarginLayoutParams
int
|
getLayoutDirection()
|
int
|
getMarginEnd()
|
int
|
getMarginStart()
|
boolean
|
isMarginRelative()
|
void
|
resolveLayoutDirection(int arg0)
|
void
|
setLayoutDirection(int arg0)
|
void
|
setMarginEnd(int arg0)
|
void
|
setMarginStart(int arg0)
|
void
|
setMargins(int arg0, int arg1, int arg2, int arg3)
|
|
From class
android.view.ViewGroup.LayoutParams
void
|
resolveLayoutDirection(int arg0)
|
void
|
setBaseAttributes(TypedArray arg0, int arg1, int arg2)
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Constants
COLLAPSE_MODE_OFF
public static final int COLLAPSE_MODE_OFF
The view will act as normal with no collapsing behavior.
Constant Value:
0
(0x00000000)
COLLAPSE_MODE_PARALLAX
public static final 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
public static final int COLLAPSE_MODE_PIN
The view will pin in place until it reaches the bottom of the CollapsingToolbarLayout
.
Constant Value:
1
(0x00000001)
Public constructors
LayoutParams
public LayoutParams (Context c,
AttributeSet attrs)
Parameters |
c |
Context |
attrs |
AttributeSet |
LayoutParams
public LayoutParams (int width,
int height)
Parameters |
width |
int |
height |
int |
LayoutParams
public LayoutParams (int width,
int height,
int gravity)
Parameters |
width |
int |
height |
int |
gravity |
int |
LayoutParams
public LayoutParams (ViewGroup.LayoutParams p)
Parameters |
p |
ViewGroup.LayoutParams |
LayoutParams
public LayoutParams (ViewGroup.MarginLayoutParams source)
Parameters |
source |
ViewGroup.MarginLayoutParams |
public LayoutParams (FrameLayout.LayoutParams source)
Parameters |
source |
FrameLayout.LayoutParams |
Public methods
getCollapseMode
public int getCollapseMode ()
Returns the requested collapse mode.
getParallaxMultiplier
public float getParallaxMultiplier ()
Returns the parallax scroll multiplier used in conjunction with COLLAPSE_MODE_PARALLAX
.
setCollapseMode
public void setCollapseMode (int collapseMode)
Set the collapse mode.
setParallaxMultiplier
public 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. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[]]