Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.


open class LayoutParams : ActionBar.LayoutParams
   ↳ android.view.ViewGroup.LayoutParams
   ↳ android.view.ViewGroup.MarginLayoutParams
   ↳ 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.


Public constructors
<init>(@NonNull c: Context, attrs: AttributeSet!)

<init>(width: Int, height: Int)

<init>(width: Int, height: Int, gravity: Int)

<init>(gravity: Int)

<init>(source: LayoutParams!)

Inherited properties

Public constructors


LayoutParams(@NonNull c: Context, attrs: AttributeSet!)


LayoutParams(width: Int, height: Int)


LayoutParams(width: Int, height: Int, gravity: Int)


LayoutParams(gravity: Int)


LayoutParams(source: Toolbar.LayoutParams!)


LayoutParams(source: ActionBar.LayoutParams!)


LayoutParams(source: MarginLayoutParams!)


LayoutParams(source: LayoutParams!)