add

open fun add(@NonNull() fm: FragmentManager, @NonNull() add: Fragment, @IdRes() containerId: Int)

Add fragment.

Parameters

fm

The manager of fragment.

add

The fragment will be add.

containerId

The id of container.

open fun add(@NonNull() fm: FragmentManager, @NonNull() add: Fragment, @IdRes() containerId: Int, isHide: Boolean)

Add fragment.

Parameters

fm

The manager of fragment.

add

The fragment will be add.

containerId

The id of container.

isHide

True to hide, false otherwise.

open fun add(@NonNull() fm: FragmentManager, @NonNull() add: Fragment, @IdRes() containerId: Int, isHide: Boolean, isAddStack: Boolean)

Add fragment.

Parameters

fm

The manager of fragment.

add

The fragment will be add.

containerId

The id of container.

isHide

True to hide, false otherwise.

isAddStack

True to add fragment in stack, false otherwise.

open fun add(@NonNull() fm: FragmentManager, @NonNull() add: Fragment, @IdRes() containerId: Int, @AnimRes() enterAnim: Int, @AnimRes() exitAnim: Int)

Add fragment.

Parameters

fm

The manager of fragment.

add

The fragment will be add.

containerId

The id of container.

enterAnim

An animation or animator resource ID used for the enter animation on the viewof the fragment being added or attached.

exitAnim

An animation or animator resource ID used for the exit animation on the view ofthe fragment being removed or detached.

open fun add(@NonNull() fm: FragmentManager, @NonNull() add: Fragment, @IdRes() containerId: Int, isAddStack: Boolean, @AnimRes() enterAnim: Int, @AnimRes() exitAnim: Int)

Add fragment.

Parameters

fm

The manager of fragment.

containerId

The id of container.

add

The fragment will be add.

isAddStack

True to add fragment in stack, false otherwise.

enterAnim

An animation or animator resource ID used for the enter animation on the viewof the fragment being added or attached.

exitAnim

An animation or animator resource ID used for the exit animation on the view ofthe fragment being removed or detached.

open fun add(@NonNull() fm: FragmentManager, @NonNull() add: Fragment, @IdRes() containerId: Int, @AnimRes() enterAnim: Int, @AnimRes() exitAnim: Int, @AnimRes() popEnterAnim: Int, @AnimRes() popExitAnim: Int)

Add fragment.

Parameters

fm

The manager of fragment.

containerId

The id of container.

add

The fragment will be add.

enterAnim

An animation or animator resource ID used for the enter animation on the viewof the fragment being added or attached.

exitAnim

An animation or animator resource ID used for the exit animation on the view ofthe fragment being removed or detached.

popEnterAnim

An animation or animator resource ID used for the enter animation on theview of the fragment being readded or reattached caused by popBackStack() or similar methods.

popExitAnim

An animation or animator resource ID used for the enter animation on theview of the fragment being removed or detached caused by popBackStack() or similar methods.

open fun add(@NonNull() fm: FragmentManager, @NonNull() add: Fragment, @IdRes() containerId: Int, isAddStack: Boolean, @AnimRes() enterAnim: Int, @AnimRes() exitAnim: Int, @AnimRes() popEnterAnim: Int, @AnimRes() popExitAnim: Int)

Add fragment.

Parameters

fm

The manager of fragment.

containerId

The id of container.

add

The fragment will be add.

isAddStack

True to add fragment in stack, false otherwise.

enterAnim

An animation or animator resource ID used for the enter animation on the viewof the fragment being added or attached.

exitAnim

An animation or animator resource ID used for the exit animation on the view ofthe fragment being removed or detached.

popEnterAnim

An animation or animator resource ID used for the enter animation on theview of the fragment being readded or reattached caused by popBackStack() or similar methods.

popExitAnim

An animation or animator resource ID used for the enter animation on theview of the fragment being removed or detached caused by popBackStack() or similar methods.

open fun add(@NonNull() fm: FragmentManager, @NonNull() add: Fragment, @IdRes() containerId: Int, @NonNull() sharedElements: Array<View>)

Add fragment.

Parameters

fm

The manager of fragment.

add

The fragment will be add.

containerId

The id of container.

sharedElements

A View in a disappearing Fragment to match with a View in an appearingFragment.

open fun add(@NonNull() fm: FragmentManager, @NonNull() add: Fragment, @IdRes() containerId: Int, isAddStack: Boolean, @NonNull() sharedElements: Array<View>)

Add fragment.

Parameters

fm

The manager of fragment.

add

The fragment will be add.

containerId

The id of container.

isAddStack

True to add fragment in stack, false otherwise.

sharedElements

A View in a disappearing Fragment to match with a View in an appearingFragment.

open fun add(@NonNull() fm: FragmentManager, @NonNull() adds: List<Fragment>, @IdRes() containerId: Int, showIndex: Int)
open fun add(@NonNull() fm: FragmentManager, @NonNull() adds: Array<Fragment>, @IdRes() containerId: Int, showIndex: Int)

Add fragment.

Parameters

fm

The manager of fragment.

adds

The fragments will be add.

containerId

The id of container.

showIndex

The index of fragment will be shown.