title: Getting data from fragment without loading the view
body: <p>I have three fragments inside an activity. Three text views inside this activities. I have three API calls inside each of the fragments. I need the count of ArrayList created in the three fragments. I tried to make the API call in activity and tried to find out the ArrayList from there and passing it to fragment. But I don't know how to pass this type of ArrayList (Arraylist array) to fragment. I only need three integer values in the activity. So the questions are,</p>
  
  <p>1) Please give me a way to pass value from three fragments to activity by actually loading the view of one fragment and loading the rest of the fragment without views.</p>
  
  <p>2) Or give me a way to pass an ArrayList of model-class created at the activity to three fragments.</p>