Fragment Utils
class FragmentUtils
Content copied to clipboard
author: Blankj
blog : http://blankj.com
time : 2017/01/17
desc : utils about fragment
Types
FragmentNode
Link copied to clipboard
open class FragmentNode
Content copied to clipboard
OnBackClickListener
Link copied to clipboard
interface OnBackClickListener
Content copied to clipboard
Functions
add
Link copied to clipboard
dispatchBackPress
Link copied to clipboard
findFragment
Link copied to clipboard
open fun findFragment(@NonNull() fm: FragmentManager, findClz: Class<out Fragment>): Fragment
Content copied to clipboard
getAllFragments
Link copied to clipboard
open fun getAllFragments(@NonNull() fm: FragmentManager): List<FragmentUtils.FragmentNode>
Content copied to clipboard
getAllFragmentsInStack
Link copied to clipboard
open fun getAllFragmentsInStack(@NonNull() fm: FragmentManager): List<FragmentUtils.FragmentNode>
Content copied to clipboard
getFragments
Link copied to clipboard
getFragmentsInStack
Link copied to clipboard
open fun getFragmentsInStack(@NonNull() fm: FragmentManager): List<Fragment>
Content copied to clipboard
getSimpleName
Link copied to clipboard
getTop
Link copied to clipboard
getTopInStack
Link copied to clipboard
getTopShow
Link copied to clipboard
getTopShowInStack
Link copied to clipboard
pop
Link copied to clipboard
popAll
Link copied to clipboard
popTo
Link copied to clipboard
removeAll
Link copied to clipboard
replace
Link copied to clipboard
setBackground
Link copied to clipboard
open fun setBackground(@NonNull() fragment: Fragment, background: Drawable)
Content copied to clipboard
setBackgroundColor
Link copied to clipboard
open fun setBackgroundColor(@NonNull() fragment: Fragment, @ColorInt() color: Int)
Content copied to clipboard
setBackgroundResource
Link copied to clipboard
open fun setBackgroundResource(@NonNull() fragment: Fragment, @DrawableRes() resId: Int)
Content copied to clipboard
showHide
Link copied to clipboard