title: Why is my ListView not showing the new data?
body: <p>my problem is, that I have a ListView and a ArrayAdapter. Now I create the adapter like this:</p>
  
  <pre><code>items = OtherClass.DataSet1;
  adapter = new MyArrayAdapter(getActivity(), R.layout.mein_listitem, items);
  </code></pre>
  
  <p>then I want to change the items e.g:</p>
  
  <pre><code>items = OtherClass.DataSet2;
  adapter.notifyDataSetChanged();
  </code></pre>
  
  <p>But the result is, that I still see the DataSet1 items in my ListView and I dont know why.</p>
  
  <p>I have the following whole code:</p>
  
  <pre><code>public class PlaceholderFragment extends Fragment implements ActionBar.TabListener {
  
      ArrayList&lt;Item&gt; items;
      MyArrayAdapter adapter;
  
  
      @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
          items = OtherClass.DataSet1;
          adapter = new MyArrayAdapter(getActivity(), R.layout.mein_listitem, items);
  
          {...}
      }
  
      @Override
      public void onTabSelected(Tab arg0, FragmentTransaction arg1) {
  
          if (arg0.getText().equals(getText(R.string.foo))) {
              items = OtherClass.DataSet1;
              adapter.notifyDataSetChanged();
          } else {
              items = OtherClass.DataSet2;
              adapter.notifyDataSetChanged();
          }
      }
  }
  
  public class Item {
      public Item(String foo1) {
          super();
          Foo1 = foo1;
  
      }
  
      public String Foo1;
  
  }
  </code></pre>