title: What is the best approach to edit object elements in different fragments
body: <p>I'm developing an android application in which is needed one object which contains an arraylist of objects to be edited.</p>
  
  <p>The idea is each of the objects in the arraylist is to be edited in a different fragment.</p>
  
  <p>The app is using <code>ORM</code> to sore objects in database, so I need each object from this arraylist to be edited in different fragments and when save button is pressed to collect the objects from the fragments, to update the main object and save it.</p>
  
  <p>Now I'm creating the fragments and using setters I'm setting the objects for each fragment in the main activity:</p>
  
  <pre><code>    DailyFragment fragment2 = new DailyFragment();
      fragment2.setdaySchedule(daySchedule);
      fragment2.setmDayIndex(1);
  </code></pre>
  
  <p>Using this approach in each fragment I have reference to the needed element of the arraylist, so it is not needed anything to be done when the main object is saved.</p>
  
  <p>I need advise if there are better ways this to be achieved?</p>