I know I can update the array which was initally passed to the arrayAdapter’s constructor, and call notifyDataSetChanged.
I wonder if it’s possible to plug-in new arraylist into adapter?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
simple:
also, do add individual elements you can call
mAdapter.add(element);instead of having to keep a reference to the Array that was passed to the constructor.