android what to use instead of onRestart() in a fragment

前端 未结 5 1378
既然无缘
既然无缘 2021-01-20 15:34

I\'m dealing with .setVisibility() of a view, inside my main fragment at app start. So what I want is that the view is invisible on app sta

5条回答
  •  耶瑟儿~
    2021-01-20 16:07

    Fragment life cycle doesn't have onRestart() method. You could use onPause() and onResume() as per your requirement.

    Further reading : Fragments

提交回复
热议问题