title: How to remove CustomListViewItem
body: <p>Hy !</p>
  
  <p>My Code:</p>
  
  <p>i just want to remove a item in a listview. But that code doesn't work for me.</p>
  
  <pre><code>public boolean onItemLongClick(final AdapterView&lt;?&gt; arg0, final View arg1,
                      final int arg2, long arg3) {
                  final Pizza pizza = (Pizza)arg0.getItemAtPosition(arg2);
                  AlertDialog.Builder builder = new AlertDialog.Builder(Main.this);
                  builder.setMessage("Are you sure you to delete " + pizza.title + "?")
                         .setCancelable(false)
                         .setPositiveButton("Yes", new DialogInterface.OnClickListener() {
                             public void onClick(DialogInterface dialog, int id) {
                                // ListView lv2 = (ListView)arg1;
                                 arg0.removeView(arg0.getChildAt(arg2));
                                  arg0.removeViewAt(arg2);
                                      myDB = Main.this.openOrCreateDatabase(MY_DB_NAME, MODE_PRIVATE, null);
                                      myDB.execSQL("DELETE FROM+"+MY_DB_TABLE+ "WHERE ID="+pizza.id);
  
                             }
                         })
                         ;
                  AlertDialog alert = builder.create();
                  alert.show();
                  return false;
              }
          });
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>10-03 08:25:12.445: ERROR/AndroidRuntime(391): java.lang.UnsupportedOperationException: removeViewAt(int) is not supported in AdapterView
  </code></pre>