title: How can I refresh my ListView using BaseAdapter
body: <p>I tried refresh my listview using notifyDataSetChanged() but this is marked on red. I use ListView like extended Adapter so notifyDataSetChaned it should work but is otherwise.</p>
  
  <p>Below is my declaration ListView and ArrayList.</p>
  
  <pre><code>ListView listview;
  ArrayList&lt;ListData&gt; myList = new ArrayList&lt;&gt;();
  </code></pre>
  
  <p>I set up my list in this way:</p>
  
  <pre><code>listview = (ListView) findViewById(R.id.listView);
  listview.setAdapter(new MyBaseAdapter(this, myList));
  </code></pre>
  
  <p>I use also setOnScrollListener and I want that my listview it refresh when SROLL_STATE = 0;</p>
  
  <pre><code>    listview.setOnScrollListener(new AbsListView.OnScrollListener() {
  
          @Override
          public void onScrollStateChanged(AbsListView view, int scrollState) {
              int position = listview.getFirstVisiblePosition();
  
              SCROLL_STATE = position;
  
              if (SCROLL_STATE == 0) {
                  listview.notifyDataSetChanged();  // Here is a problem, because it's not work
              }
  
          }
  
          @Override
          public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) {
  
          }
      });
  </code></pre>