title: Listview item move swipe left or right
body: <p>i want swipe list view items left or right and after swipe items are deleted 
  `   </p>
  
  <pre><code> @Override
              protected void onCreate(Bundle savedInstanceState) {
                  super.onCreate(savedInstanceState);
                  setContentView(R.layout.activity_main);
                  items = new ArrayList&lt;String&gt;();
                  items.add("arpit");
                  items.add("b");
                  items.add("c");
                  items.add("d");
                  items.add("e");
                  items.add("f");
                  items.add("g");
                  items.add("h");
                  items.add("i");
                  items.add("j");
                  items.add("k");
                  items.add("l");
  
  
                  //String[] items = { "arpit", "avninash", "lucky", "rakesh", "jitendra", "arun", "dharmendra", "amitabh", "arpit", "avninash", "lucky", "rakesh", "jitendra", "arun", "dharmendra", "amitabh" };
                  listview = (ListView) findViewById(R.id.listView1);
                  arrayadapter = new ArrayAdapter&lt;String&gt;(this, android.R.layout.simple_list_item_1, items);
                  listview.setAdapter(arrayadapter);
                  listview.setOnItemClickListener(new OnItemClickListener() {
  
                      @Override
                      public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position, long id) {
                          Toast.makeText(getApplicationContext(), "plese Move me", Toast.LENGTH_SHORT).show();
                          arrayadapter.remove(arrayadapter.getItem(position));
                          arrayadapter.notifyDataSetChanged();
                      }
                  });
  
              }
  
          }
          `
  </code></pre>
  
  <p>iam using this code this code creating a list view, and after click item delete item but not swipe .</p>