setup Toolbar

open override fun setupToolbar(    toolbar: Toolbar?,     title: String?,     isChild: Boolean,     menu: Int?,     onMenuListener: (Int) -> Boolean?)

Method to set activity's toolbar

Parameters

toolbar

Toolbar that defined in XML layout, nullable

title

Title for toolbar, nullable

isChild

Display back button it toolbar?

menu

menu Id, nullable if not needed

onMenuListener

listener when item of the menu selected, nullable if not needed

Sources

Link copied to clipboard