SupportFragment
constructor(@MenuRes inflateMenu: Int = NO_MENU_ITEM, @LayoutRes inflateLayout: Int = NO_LAYOUT_ITEM)
Parameters
inflateMenu
setting this to anything other than ISupportFragment.NO_MENU_ITEM will automatically inflate the given menu in onCreateOptionsMenu and set setHasOptionsMenu to true.
inflateLayout
settings this to anything other than ISupportFragment.NO_LAYOUT_ITEM will inflate the given layout automatically in onCreateView.