addHeaderButton

fun addHeaderButton(id: Int, order: Int, title: String, drawable: Drawable, onClick: MenuItem.OnMenuItemClickListener): Int

Add a button to the header Toolbar of this page

Return

The id of this header button

Parameters

id

The id of this button

order

The order to show this button in. See getOrder

title

The title of this button

drawable

The drawable this button should have

onClick

The onClick listener of this button

See also


Add a button to the header Toolbar of this page

Return

The id of this header button

Parameters

id

The id of this button

title

The title of this button

drawable

The drawable this button should have

onClick

The onClick listener of this button

See also


Add a button to the header Toolbar of this page

Return

The id of this header button

Parameters

title

The title of this button

drawable

The drawable this button should have

onClick

The onClick listener of this button

See also


Add a button to the header Toolbar of this page

Return

The id of this header button

Parameters

title

The title of this button

drawableId

The id of the drawable this button should have. Will be tinted to colorInteractiveNormal

onClick

The onClick listener of this button

See also


Deprecated

Adds a button from the Toolbar associated with this Page

Deprecated

Use addHeaderButton or getHeaderBar.getMenu().add(...)