setActivityTitle

fun Fragment.setActivityTitle(@StringRes resId: Int)
fun Activity.setActivityTitle(@StringRes resId: Int)


fun Fragment.setActivityTitle(title: String)

设置Activity标题,直接调用Fragment.requireActivity.setTitle,不起作用(使用了Navigation).


fun Activity.setActivityTitle(title: String)

设置Activity标题,直接调用Activity.setTitle,不起作用(使用了Navigation).