Toolbar.LayoutParams


public class Toolbar.LayoutParams extends ActionBar.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

Public constructors

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

Inherited Constants

From android.view.ViewGroup.LayoutParams
static final int

This field is deprecated.

static final int
static final int

Inherited methods

From android.view.ViewGroup.LayoutParams
void
setBaseAttributes(TypedArray a, int widthAttr, int heightAttr)
From android.view.ViewGroup.MarginLayoutParams
int
int
int
boolean
void
resolveLayoutDirection(int layoutDirection)
void
setLayoutDirection(int layoutDirection)
void
setMarginEnd(int end)
void
setMarginStart(int start)
void
setMargins(int left, int top, int right, int bottom)

Public constructors

LayoutParams

Added in 1.7.0
public LayoutParams(int gravity)

LayoutParams

Added in 1.7.0
public LayoutParams(ActionBar.LayoutParams source)

LayoutParams

Added in 1.1.0
public LayoutParams(Toolbar.LayoutParams source)

LayoutParams

Added in 1.7.0
public LayoutParams(ViewGroup.LayoutParams source)

LayoutParams

Added in 1.1.0
public LayoutParams(ViewGroup.MarginLayoutParams source)

LayoutParams

Added in 1.7.0
public LayoutParams(@NonNull Context c, AttributeSet attrs)

LayoutParams

Added in 1.7.0
public LayoutParams(int width, int height)

LayoutParams

Added in 1.7.0
public LayoutParams(int width, int height, int gravity)