There is a callback method which gets invoked when the fragment is visible to the user. You can trigger your loadData() in this method. Have a boolean which tells you if data is already fetched. Refer the below lines of code :