I want to send model object (ArraList<Student>) to a fragment using
contructor but new Fragment does not allow to send reference of custom
model object using constructor.
How can i achieve this.
1. ArrayList<Student> student; contains information of students
2. fragment contains UI/Events which can change some properties of selected
student (e.g Name, age)
class StudentFrament extend Fagment
{
public StudentFragment(Context context;, ArrayList<Student> student)
{
}
}
I want to do like above code i.e student is reference variable so if i
change any values of student arraylist will reflect to actual object in
activity
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.