Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

生命周期问题 #4

Closed
jielundewode opened this issue Dec 3, 2020 · 1 comment
Closed

生命周期问题 #4

jielundewode opened this issue Dec 3, 2020 · 1 comment

Comments

@jielundewode
Copy link

由FragmentA跳转到FragmentB,FragmentA生命周期为何没有任何变化?

    override fun onAttach(context: Context) {
        super.onAttach(context)
        Log.e("生命周期","onAttach")
    }

    override fun onStart() {
        super.onStart()
        Log.e("生命周期","onStart")
    }

    override fun onResume() {
        super.onResume()
        Log.e("生命周期","onResume")
    }


    override fun onPause() {
        super.onPause()
        Log.e("生命周期","onPause")
    }

    override fun onStop() {
        super.onStop()
        Log.e("生命周期","onStop")
    }

    override fun onDetach() {
        super.onDetach()
        Log.e("生命周期","onDetach")
    }
@jielundewode
Copy link
Author

群友热情回复,会回调

    override fun onHiddenChanged(hidden: Boolean) 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant