I have a simple question. I have an arrayList of views I want to add to a ViewGroup. I currently am iterating through them with a for loop and adding them individually.
ViewGroup commentList = (ViewGroup) this.findViewById(R.id.comment_list);
for (View commment: comments) {
commentList.addView(commment);
}
Can I do this all at once with a single call? Like an addAll() method? I feel like this would be more efficient, especially if I have a lot of views I'm adding....