FloatingToolbarLayout


Kotlin |Java

public class FloatingToolbarLayout 


Provides an implementation of a floating toolbar.

Floating toolbars float above the body content and can be used to display contextual actions relevant to the body content or the specific page.

The floating toolbar supports a custom android.view.ViewGroup child. The toolbar provides styling for the provided child to give a uniform "floating toolbar" appearance to the android.view.ViewGroup.

Summary

Public constructors

FloatingToolbarLayout(Context context)
FloatingToolbarLayout(Context context, AttributeSet attrs)
FloatingToolbarLayout(
Context context,
AttributeSet attrs,
int defStyleAttr
)
FloatingToolbarLayout(
Context context,
AttributeSet attrs,
int defStyleAttr,
int defStyleRes
)

Public methods

void
setLayoutParams(LayoutParams params)

Public constructors

FloatingToolbarLayout

public FloatingToolbarLayout(Context context)

FloatingToolbarLayout

public FloatingToolbarLayout(Context context, AttributeSet attrs)

FloatingToolbarLayout

public FloatingToolbarLayout(
Context context,
AttributeSet attrs,
int defStyleAttr
)

FloatingToolbarLayout

public FloatingToolbarLayout(
Context context,
AttributeSet attrs,
int defStyleAttr,
int defStyleRes
)

Public methods

setLayoutParams

public void setLayoutParams(LayoutParams params)

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 2026年05月14日 UTC.