title: How to clear an Android ListView and populate it with new data?
body: <p>I have a spinner and a listview in the same Activity. The listview is loaded with a list of items. i want when user clicks on the item from spinner the listview will be clear and new listview will load according to item chooses in spinner </p>
  
  <pre><code>    setListAdapter(new ArrayAdapter&lt;String&gt;(this, R.layout.listviewxml, video));
  
         ListView lv=getListView();
  
         lv.setTextFilterEnabled(true);
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/sPsP8.png" alt="enter image description here"></p>
  
  <p>Please tell how to do this?</p>
  
  <p>i am not able to clear the listview </p>