set
Fragment
fun setFragment( viewRes: Int, fragment: Fragment, addToBackStack: Boolean)
Content copied to clipboard
Method to attach fragment to layout
Parameters
viewRes
id of Fragment/ FrameLayout
fragment
fragment to attached
addToBackStack
add the fragment to backStack of application