setupToolbar

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

Function to set ArcActivity's Toolbar from ArcFragment

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