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
Fragment life cycle doesn't have onRestart() method. You could use onPause() and onResume() as per your requirement.
onRestart()
onPause()
onResume()
Further reading : Fragments