0

I tried to use onStart() but it doesn't invoke with ViewPager in some cases, especially when going to fragment from nearest tab on tablayout.

What can be problem?

Is there any other events that invoke explicitly?

Bertram Gilfoyle
  • 9,899
  • 6
  • 42
  • 67
Tigran Babajanyan
  • 1,967
  • 1
  • 22
  • 41
  • 1
    The [ViewPager.OnPageChangeListener](https://developer.android.com/reference/android/support/v4/view/ViewPager.OnPageChangeListener) might also help you. – Enzokie Aug 25 '18 at 12:25

1 Answers1

0

Fragment#onResume() will be called when the fragment is visible to the user and actively running. This is generally tied to Activity.onResume of the containing Activity's lifecycle.

Bertram Gilfoyle
  • 9,899
  • 6
  • 42
  • 67