setup Toolbar

abstract fun setupToolbar(    toolbar: Toolbar? = null,     title: String? = null,     isChild: Boolean,     menu: Int? = null,     onMenuListener: (Int) -> Boolean? = null)

Method to set toolbar, can be called from DevActivity or DevFragment

Parameters

toolbar

Toolbar that defined in XML layout, nullable

title

Title for toolbar, nullable

isChild

Display back button it toolbar?

Sources

Link copied to clipboard