Adding object to ArrayList
问题 I'm trying to add objects received from Firebase Database to an ArrayList. However, the list stays empty even after calling the add method. What am I doing wrong? I'm trying to load data from firebase and is display it in a list view. I used log statements to check if the data from firebase is being received and it is. Anybody with suggestions? public class RescueFragment extends Fragment { public RescueFragment() { // Required empty public constructor } @Override public View onCreateView