gh-pages / com.nextfaze.devfun.menu / MenuHeader
MenuHeader
interface MenuHeader
(source)
The view type/key used by DevMenu to find/inflate the menu header view.
Example usage from demo (~line 64 demoMenuHeaderFactory
in com.nextfaze.devfun.demo.devfun.DevFun.kt
):
// MenuHeader is the "key" (used by DevMenu to inflate the menu header)
// DemoMenuHeaderView is the custom view type
devFun.viewFactories += viewFactoryProvider<MenuHeader, DemoMenuHeaderView>(R.layout.demo_menu_header) {
setTitle(activityProvider()!!::class.splitSimpleName)
setCurrentUser(session.user)
}
See Also