Google is committed to advancing racial equity for Black communities. See how.

Toolbar.LayoutParams

public static class Toolbar.LayoutParams
extends ActionBar.LayoutParams

java.lang.Object
   ↳ android.view.ViewGroup.LayoutParams
     ↳ android.view.ViewGroup.MarginLayoutParams
       ↳ androidx.appcompat.app.ActionBar.LayoutParams
         ↳ androidx.appcompat.widget.Toolbar.LayoutParams


Layout information for child views of Toolbars.

Toolbar.LayoutParams extends ActionBar.LayoutParams for compatibility with existing ActionBar API. See AppCompatActivity.setSupportActionBar for more info on how to use a Toolbar as your Activity's ActionBar.

Summary

Inherited constants

Inherited fields

Public constructors

LayoutParams(Context c, AttributeSet attrs)
LayoutParams(int width, int height)
LayoutParams(int width, int height, int gravity)
LayoutParams(int gravity)
LayoutParams(Toolbar.LayoutParams source)
LayoutParams(ActionBar.LayoutParams source)
LayoutParams(ViewGroup.MarginLayoutParams source)
LayoutParams(ViewGroup.LayoutParams source)

Inherited methods

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 (int gravity)

Parameters
gravity int

LayoutParams

public LayoutParams (Toolbar.LayoutParams source)

Parameters
source Toolbar.LayoutParams

LayoutParams

public LayoutParams (ActionBar.LayoutParams source)

Parameters
source ActionBar.LayoutParams

LayoutParams

public LayoutParams (ViewGroup.MarginLayoutParams source)

Parameters
source ViewGroup.MarginLayoutParams

LayoutParams

public LayoutParams (ViewGroup.LayoutParams source)

Parameters
source ViewGroup.LayoutParams