title: Android ListView not Populating in fragment
body: <p>I am trying to query parse for every entry in a Class and add it to an array list to display on a ListView. I am attempting to do this on a fragment. But I am not getting any items showing in the list, in the log I can see 4 items have been retrieved which is correct, but they are not displaying.
  Any suggestions I am using the following code:</p>
  
  <pre><code> import android.os.Bundle;
   import android.support.v4.app.Fragment;
   import android.util.Log;
   import android.view.LayoutInflater;
   import android.view.View;
   import android.view.ViewGroup;
   import android.widget.ArrayAdapter;
   import android.widget.ListView;
  
   import com.parse.FindCallback;
   import com.parse.ParseException;
   import com.parse.ParseObject;
   import com.parse.ParseQuery;
  
   import java.util.ArrayList;
   import java.util.List;
  
  
    /**
     * A simple {@link Fragment} subclass.
    */
   public class InventoryDisplayFragment extends Fragment {
  
  ArrayList&lt;String&gt; inventoryItems;
  ArrayAdapter arrayAdapter;
  
  public InventoryDisplayFragment() {
      // Required empty public constructor
  
  
  }
  
  
  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,
                           Bundle savedInstanceState) {
  
       inventoryItems = new ArrayList&lt;String&gt;();
      arrayAdapter = new ArrayAdapter&lt;String&gt;(getActivity(), android.R.layout.simple_list_item_1, inventoryItems);
  
      final View rootView = inflater.inflate(R.layout.fragment_inventory_display, container, false);
      final ListView productsList = (ListView) rootView.findViewById(R.id.itemlistView);
  
      ParseQuery&lt;ParseObject&gt; query = ParseQuery.getQuery("Inventory");
      query.findInBackground(new FindCallback&lt;ParseObject&gt;() {
          @Override
          public void done(List&lt;ParseObject&gt; stockItemList, ParseException e) {
              if(e == null){
                  if(stockItemList.size() &gt; 0){
  
  
  
                      for(ParseObject unit : stockItemList){
  
                      inventoryItems.add(unit.get("productName").toString());
                          Log.d("unit", "retrieved: " + stockItemList.size());
  
                      }
  
  
                      productsList.setAdapter(arrayAdapter);
  
                  }
  
              } else {
  
                  Log.d("unit", "Error: " + e.getMessage());
              }
          }
      });
  
  
      // Inflate the layout for this fragment
      return inflater.inflate(R.layout.fragment_inventory_display, container, false);
  
  
  
  }
  </code></pre>
  
  <p>}</p>